更改 Android Honeycomb 中的菜单项文本颜色
我在操作栏中实现样式时遇到各种问题,我已阅读
http://android-developers.blogspot.com/2011/04/customizing-action-bar.html
这迫使您继承一些相当晦涩的类,并最终设法更改标题文本颜色。现在我想更改始终存在于操作栏中的菜单项的文本颜色。为什么当我指定全局文本颜色时,它不会将其应用于操作栏中的任何内容,我不知道......无论如何,有人知道如何更改文本颜色吗?我可以看到您可以使用“android:selectableItemBackground”更改背景,但不知道如何更改文本颜色。
...我不喜欢违反标准,但我真的想将操作栏扔到窗外,并在片段中制作一个很好的正常相对布局。
多谢
I'm having all sorts of problems implementing styles in action bar, i've read
http://android-developers.blogspot.com/2011/04/customizing-action-bar.html
Which forces you to inherit some pretty obscure classes and finally managed to change the title text color. Now I'm wanting to change the text color of a menu item which is always preseant in the action bar. Why one earth when I specifiy a global text color it doesn't apply it to anything in the action bar I don't know... Anyway, does anyone know how to change the text color? I can see you can change the background with "android:selectableItemBackground" but no how to change the text color.
...I don't like to go against the standard but I really want to throw the acion bar out of the window and just make a nice normal relative layout in a fragment.
Thanks a lot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为使用 android 已发布的 API 是不可能的。
i don't think that is possible using the published APIs of android.