选项菜单中有一个半透明的背景,我想使固体和非透明。有什么办法?
The options menu has a translucent background and I would like to make it solid and non-transparent. Is there a way?
试试这个:
<style name="MyTheme" parent="android:Theme">
<item name="android:panelFullBackground">{your color or drawable}</item>
</style>
此外,见:
HTTP://$c$c.google。 COM / P /安卓/问题/详细信息?ID = 4441 Change选项菜单的背景颜色 完全压倒一切的菜单面板: Android的菜单项切换按钮 http://code.google.com/p/android/issues/detail?id=4441 Change the background color of the options menu Completely overriding menu panel: Android MenuItem Toggle Button