2014-04-08 57 views
0

我试图用一些自定义颜色来调整我的应用程序,但我无法更改操作栏的文本颜色。Android - 如何更改动作选项卡菜单的文本颜色?

这是它是如何目前呈现: Example

如果你看近,你可能会看到白色的标签栏的字母。我试图改变这种颜色为黑色,而不改变任何其他的操作栏。

这是我styles.xml看起来像:

<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar"> 
    <item name="android:actionBarStyle">@style/ActionBar</item> 
</style> 

<style name="ActionBar" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"> 
    <item name="android:background">@color/default_green</item> 
    <item name="android:backgroundStacked">@color/stacked_white</item> 
    <item name="android:backgroundSplit">@color/sa_green</item> 
</style> 

任何帮助表示赞赏。

+0

指这个,这也是我自己的ANS http://stackoverflow.com/questions/22858381/change-text-color-and-selector-in-tabwidget/22858550#22858550 –

+0

您是否尝试过这个帖子: http://stackoverflow.com/questions/8024706/how-do-i-change-the-background-color-of-the-actionbar-of-an-actionbaractivity-us 希望这有助于 – Developer

回答

0

尝试...... 这应该是在主题

<item name="actionBarTabTextStyle">@style/tabtextcolor</item> 
<item name="android:actionBarTabTextStyle">@style/tabtextcolor</item> 

这应该是你定义的标签文本颜色。

<style name="tabtextcolor" parent="@style/Widget.Sherlock.ActionBar.TabText"> 
    <item name="android:textColor">@android:color/white</item> 
</style> 
相关问题