我改变了动作条在我的应用程序的背景,使文字可读再次我要改变文本的颜色。我是成功的标题/字幕和标签,文本,但我挣扎的动作项目的文本 - 他们留白不管我试过了。任何人对如何做到这一点的提示? 另外,溢出图标为白色看起来并不太好的木制背景 - 是一个的非常的很好的理由来使用下面的东西吗?我真的不知道什么是不能做的原因吧,但我没有一个大的设备测试的公园我更想肯定; - )
<! - 可用于样式溢出菜单按钮以下
只有当你有一个*非常*充分的理由!!做到这一点 - >
<! - <样式名称=MyOverflowButton父=Widget.Sherlock.ActionButton.Overflow>
<项目名称=机器人:SRC> @可绘制/ ic_menu_view< /项目>
<项目名称=机器人:背景> @可绘制/ action_button_background< /项目>
< /风格> - >
解决方案
您可以尝试从机器人:在你的清单主题=@风格/ Theme.Sherlock.Light
然后改变你的风格。光主题设有深色的行动项目。或者只是看看通过光的主题,以了解如何改变它们。
I was changing the background of the Actionbar in my App and to make text readable again I have to change the color of the text. I was successful with title/subtitle and the tab-texts, but I am struggling with the text of the action-items - they stay white no matter what I tried . Anyone has a hint on how to do that? Also the overflow-icon is white which does not look too good on the wooden background - is that an extremely good reason to use the stuff below? I am not really sure what's the reason to not do it, but as I do not have a big device-test-park I better want to be sure ;-)
<!-- 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>-->
解决方案
Try starting with android:theme="@style/Theme.Sherlock.Light"
in your Manifest and then changing your styles. The light theme features dark action items. Or just look through the light theme to find out how to change them.
上一篇:如何更改操作栏的文本和背景属性?属性、如何更改、背景、操作
下一篇:本机动作条selectableItemBackground与ActionBarSherlock本机、动作、ActionBarSherlock、selectableItemBackground