Ave*_*cus 5 android themes coding-style textview
在查看内置的Android主题/样式时,我注意到对textColorPrimary,textColorSecondary等的引用.我想在我自己的主题中实现它,但是找不到任何方法将textview(或任何视图)设置为"primary"或"次要的"等
我是否忽略了某些事情或是不可能完成的事情?
brm*_*aho 17
你看到"textColor_____"的引用是对颜色选择器的引用.你在TextView的xml定义中使用类似'android:textColor ="?android:textColorSecondary"'的行.
有关更多详细信息,请参阅此处:http: //developer.android.com/guide/topics/resources/accessing-resources.html#ReferencesToThemeAttributes
| 归档时间: |
|
| 查看次数: |
7669 次 |
| 最近记录: |