【发布时间】:2015-04-13 14:28:35
【问题描述】:
我的主要文本颜色定义如下:
<color name="primaryTextColor">#ff82ff26</color>
也在我的 style.xml 中:
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light">
<!-- colorPrimary is used for the default action bar background -->
<item name="colorPrimary">@color/primaryColor</item>
<!-- colorPrimaryDark is used for the status bar -->
<item name="colorPrimaryDark">@color/primaryColorDark</item>
<!-- colorAccent is used as the default value for colorControlActivated
which is used to tint widgets -->
<item name="colorAccent">@color/AccentColor</item>
<item name="android:textColorPrimary">@color/primaryTextColor</item>
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight & colorSwitchThumbNormal. -->
</style>
</resources>
问题是颜色在任何地方都被修改了,也被修改到我的列表视图中,但我希望我的列表视图的文本是不同的颜色有没有办法做到这一点?
【问题讨论】: