【发布时间】:2013-08-21 14:42:56
【问题描述】:
这就是我在股票 android 上设置 Action Bar Overflow 的样式:
<style name="DropDownNav.MyTheme" parent="@android:style/Widget.Holo.Light.Spinner">
<item name="android:popupBackground">@drawable/menu_dropdown_panel</item>
<item name="android:dropDownSelector">@drawable/selectable_background</item>
</style>
但指定的自定义选择器不会应用于带有硬件按钮的三星设备上的弹出选项菜单,而是默认为蓝色。
我看到this answer 并尝试申请
<style name="ListPopupWindow.IvuTheme" parent="android:Widget.ListPopupWindow">
<item name="android:dropDownSelector">@drawable/list_selector_holo_light</item>
<item name="android:listSelector">@drawable/list_selector_holo_light</item>
</style>
但没有效果。
为了在后面的硬件按钮选项菜单中更改选择器,我需要继承什么样式(以及我的主题中的相应属性是什么)?
感谢您的建议
【问题讨论】:
标签: android android-actionbar android-theme android-styles android-optionsmenu