如何设置默认图标颜色和其他属性

时间:2018-09-03 00:38:32

标签: android material-design

我想更改Android Studio上图标的默认颜色,并将alpha设置为60%。

如何在styles.xml文件上执行此操作?

1 个答案:

答案 0 :(得分:2)

要更改颜色,请使用:

android:tint="@android:color/white"

要将alpha设置为60%,请更改

<color name="white">#ffffff</color>

 <color name="white">#99ffffff</color> <!-- 99 is for 60% alpha and other pairs are for R G B -->

检查以下内容:

由于低分,我无法发表评论