drs*_*boo 3

这可以通过为操作栏设置一些样式来完成。这篇博客文章中对此进行了解释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)

  • 嗯,这实际上对我不起作用。这里的下拉项只有背景选择器。 (4认同)