本文介绍了操作栏菜单项的文字颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何更改菜单项的标题文字颜色。我试图将其更改为以下
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>更多推荐
操作栏菜单项的文字颜色
发布评论