样式ActionbarSherlock:action-items的textColor

lig*_*igi 4 android actionbarsherlock android-actionbar

我正在改变我的应用程序中Actionbar的背景,并再次使文本可读,我必须更改文本的颜色.我成功获得了标题/副标题和标签文本,但我正在努力处理动作项目的文本 - 无论我尝试什么,它们都保持白色.任何人都有提示如何做到这一点?溢出图标也是白色,在木制背景上看起来不太好 - 使用下面的东西是一个非常好的理由吗?我不确定不这样做的原因是什么,但由于我没有大型设备测试公园,我最好还是要确定;-)

<!-- the following can be used to style the overflow menu button
     only do this if you have an *extremely* good reason to!! -->
<!--<style name="MyOverflowButton" parent="Widget.Sherlock.ActionButton.Overflow">
    <item name="android:src">@drawable/ic_menu_view</item>
    <item name="android:background">@drawable/action_button_background</item>
</style>-->
Run Code Online (Sandbox Code Playgroud)

小智 15

我也很努力,但改变行动项目文字颜色的解决方案是:

<style name="My.Theme" parent="Theme.Sherlock.Light">
    <item name="android:actionMenuTextColor">@android:color/white</item>
</style>
Run Code Online (Sandbox Code Playgroud)

这里的关键是在一般主题中使用此属性,而不是在操作栏样式中.