Pau*_*erx 5 android menu submenu actionbarsherlock android-actionbar
我想将文本的白色更改为橙色.
这是一个例子.

这可以通过为操作栏设置一些样式来完成。这篇博客文章中对此进行了解释http://android-developers.blogspot.com.au/2011/04/customizing-action-bar.html
您需要在您的应用程序风格中设置它。
<style name="MyTheme" parent="android:style/Theme.Holo.Light">
<item name="android:dropDownListViewStyle">@style/MyDropDownListView</item>
</style>
Run Code Online (Sandbox Code Playgroud)
然后您可以使用自己的文本颜色指定此样式。
<!-- style the items within the overflow menu -->
<style name="MyDropDownListView" parent="android:style/Widget.Holo.ListView.DropDown">
<!-- This is the orange text color -->
<item name="android:textColor">#CC3232</item>
</style>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4017 次 |
| 最近记录: |