We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6a9c90 commit e02c194Copy full SHA for e02c194
1 file changed
CustomView/Base/[03]Color.md
@@ -82,6 +82,8 @@ RGB 从0x00到0xff表示颜色从浅到深。
82
83
``` java
84
int color = getResources().getColor(R.color.mycolor);
85
+
86
+ int color = getColor(R.color.myColor); //API 23 及以上支持该方法
87
```
88
89
### 4.在xml文件(layout或style)中引用或者创建颜色
0 commit comments