The options menu has a translucent background and I would like to make it solid and non-transparent. Is there a way?
To add background and text color of overflow menu just add two line of more code android:textColor and itemBackground in your project styles. xml file.
TRANSPARENT (which represents the same thing as @android:color/transparent ) is equal to 0 . The hex representation of 0 is #00000000 , which means that Color. TRANSPARENT is essentially a completely transparent Color.
Try this:
<style name="MyTheme" parent="android:Theme">
<item name="android:panelFullBackground">{your color or drawable}</item>
</style>
Also, see:
set android:theme="myTheme"
, and define your own theme with whatever colours you want. Read up about Styles, and look at the android themes.xml.
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