I have been struggling with this problem for a while. I have no action bar but I do have a options menu. The options menu is transparent I can't get it to be not transparent. This problem arises because of the theme: Theme.AppCompat.Light.DarkActionBar
or any like Theme.AppCompact.Light.
I have tried many things like setting android:panelFullBackground
or similar but they do not work or them make all my screen dark for split-seconds when options menu is out.
I did find a somewhat useful solution which is I extended ActionBarActivity
and set the Theme to Theme.AppCompat.Light.NoActionBar
but when you press the options menu button you hear the button pressing sound twice.
Please help me. I would like a xml fix or a different (similar though to what I'm using) theme(that works with tabs too).
Change itemBackground parameter in styles.xml
<item name="android:itemBackground">@color/white</item>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With