我想将操作栏的标题颜色更改为白色。我已经声明了样式:
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Holo.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
<item name="android:windowActionBar">true</item>
<item name="android:actionBarStyle">@style/ProjActionBar</item>
<item name="android:actionBarTabTextStyle">@style/ProjActionBar.TitleTextStyle</item>
</style>
<!-- ActionBar Style -->
<style name="ProjActionBar" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">@color/b</item>
<item name="android:backgroundStacked">@color/k1</item>
<!-- This is when tabs are splitted into a second line -->
</style>
<style name="ProjActionBar.TitleTextStyle" parent="@android:style/TextAppearance">
<item name="android:textColor">@color/w</item>
<item name="android:textSize">13sp</item>
</style>
如您所见,我有一个“actionBarTabTextStyle”,其属性“textColor”声明为@color/w,在我的colors.xml中声明为:
<color name="w">#FFFFFFFF</color>
发生了什么事?为什么操作栏标题不会改变 textColor?
我的项目针对 min SDK 11 sdkVersion 17 (Honeycomb 3.0+)