Android的3.0动作条,改变颜色 [英] Android 3.0 ActionBar, changing colors
问题描述
如何更改标签下方下划线的颜色?这是目前淡蓝色的,我无法找到如何改变这种为Android 3.0的任何资源。
How can I change the color of the underline beneath the tabs? It's currently the light blue, and I can't find any resources on how to change this for Android 3.0.
此外,我想改变文字颜色,显示了在动作条的作为的结果右侧的菜单项:安卓showAsAction =ifRoom | withText
Additionally, I'd like to change the text color for the menu items that show up on the right of the ActionBar as a result of: android:showAsAction="ifRoom|withText"
任何人都知道如何更改这些?
Anyone know how to change these?
推荐答案
您可以通过使用属性 Android的控制标签的外观C>安卓:actionBarTabBarStyle
和机器人:actionBarTabTextStyle
You can control the appearance of the tabs by using the properties android:actionBarTabStyle
, android:actionBarTabBarStyle
, and android:actionBarTabTextStyle
.
在官方开发指南本节显示了一个示例XML定制的动作酒吧的风格。
This section in the official developer guide shows a sample xml to customize the action bar's style.
关于菜单选项的文本检查属性 actionMenuTextAppearance
和 actionMenuTextColor
。
Regarding the text of the menu options check the properties actionMenuTextAppearance
and actionMenuTextColor
.
这篇关于Android的3.0动作条,改变颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!