Car*_*ssy 16 android android-actionbar android-styles
我有一个父亲@android的自定义主题:style/Theme.Holo.Light.DarkActionBar我想将下拉菜单更改为白色版本(见图)
我查了一些例子,但它们对我来说没有用,是否有可能只用Light版本覆盖DarkActionBar的下拉菜单?
(我不使用sherlock动作栏)
Thu*_*inh 20
这对我有用.希望它有所帮助:
<style name="YOUR_DARK_AB_THEME">
<item name="android:actionBarWidgetTheme">@style/YourActionBarWidget</item>
</style>
<!-- This helps the PopupMenu stick with Light theme while the ActionBar is in Dark theme -->
<style name="YourActionBarWidget"
parent="android:Theme.Holo.Light">
<item name="android:popupMenuStyle">@android:style/Widget.Holo.Light.PopupMenu</item>
<item name="android:dropDownListViewStyle">@android:style/Widget.Holo.Light.ListView.DropDown</item>
</style>
Run Code Online (Sandbox Code Playgroud)