操作栏菜单项的文字颜色 [英] Action Bar menu item text color

查看:117
本文介绍了操作栏菜单项的文字颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改菜单项的标题文字颜色。我试图将其更改为以下

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆