操作栏菜单项文本颜色 [英] Action Bar menu item text color
本文介绍了操作栏菜单项文本颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改菜单项标题的文本颜色.我试图改变它如下
How to change text color of menu item title. I tried to change it as below
<style name="Theme.Kanku.ActionBar.TitleTextStyle" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title">
<item name="android:textColor">@color/white</item>
</style>
但它只改变操作栏标题文本的颜色,而不改变菜单项文本的颜色.
But it change color only of Action Bar title text, but not menu item text.
推荐答案
试试这个:
<style name="ThemeName" parent="@style/Theme.Sherlock.Light">
<item name="actionMenuTextColor">@color/white</item>
<item name="android:actionMenuTextColor">@color/white</item>
</style>
这篇关于操作栏菜单项文本颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文