Skip to content Skip to sidebar Skip to footer

Android Optionsmenu Issue, Background Is Always Transparent

My options menu always shows no background (background is transparent). Does anyone know how to ged rid of this? My activity where the fail is originated, extends from another cust

Solution 1:

Probably too late, but in case people people end up here via Google (like me).

Theme.AppCompat sets android:panelBackground to @android:color/transparent, which is normally not a problem as if you extend ActionBarActivity it handles the options panel creation with a background. However if you are using a standard Activity, with Theme.AppCompat, the options menu will be transparent. Fix by either changing the android:panelBackground or extending ActionBarActivity. Probably extending ActionBarActivity.

Post a Comment for "Android Optionsmenu Issue, Background Is Always Transparent"