How to change the background color of Action Bar's Option Menu in Android 4.2?

后端 未结 17 1314
别那么骄傲
别那么骄傲 2020-11-22 16:00

I\'d like to change the background color of the option (overflow) menu in Android 4.2. I have tried all the methods but it is still showing the default color set by the them

17条回答
  •  再見小時候
    2020-11-22 16:55

    If you read this, it's probably because all the previous answers didn't work for your Holo Dark based theme.

    Holo Dark uses an additional wrapper for the PopupMenus, so after doing what Jonik suggested you have to add the following style to your 'xml' file:

    
    

    Then reference it in your theme block:

    
    

    That's it!

提交回复
热议问题