Given :
ActionBar is made using the Toolbar from AppCompat.
Problem :
SubMenu is shown with a transparent background. A menu of the first level work as it should.
Suspicions :
1) Something is wrong with the styles (they are below).
2) ToolBar and / or AppCompat (v21) jamb anyway.
3) <crossed out> android does not work !!! 11 <\ crossed out> the questioner didn’t fully straighten his arms.
In the styles of this:
<style name="ThemeLight" parent="Theme.AppCompat.Light.NoActionBar"> <item name="popupMenuStyle"> @style /OdnakoPopupMenuLight</item> <item name="dropDownListViewStyle"> @style /OdnakoDropDownListViewLight</item> </style> <style name="OdnakoPopupMenuLight" parent=" @style /Widget.AppCompat.PopupMenu"> <item name="android:popupBackground"> @color /material_grey_400</item> <item name="android:background"> @color /material_grey_400</item> <item name="actionMenuTextColor"> @color /material_grey_800</item> </style> <style name="OdnakoDropDownListViewLight" parent=" @style /Widget.AppCompat.ListView.DropDown"> <item name="android:listSelector">@drawable/selectable_background</item> <item name="android:popupBackground"> @color /material_grey_400</item> <item name="android:background"> @color /material_grey_400</item> <item name="actionMenuTextColor"> @color /material_grey_800</item> </style>
In these Google you are advised to change the ListView style, but it does not help.
Total :
Google is powerless , I am powerless . Help