How to change color of background in menu? It is white by default. I changed style.xml and menu but it shows white menu yet. what is problem with this code: I can remove
android:theme="@style/your_custom_optionsMenuStyle"
form manifest.xml and the menu color become black. but i want to know is it good way? and is it be black in other devices with different api?
<item
android:id="@+id/menu_settings"
android:title="@string/menu_settings"
android:orderInCategory="100"/>
<item name="actionOverflowMenuStyle">@style/your_custom_optionsMenuStyle</item>
</menu>
style.xml file: <
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="android:Theme.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
<style name="your_custom_optionsMenuStyle" parent="AppBaseTheme">
<item name="android:popupBackground">#000000</item>
</style>
</resources>
manifest:
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/your_custom_optionsMenuStyle"
>