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

后端 未结 17 1072
别那么骄傲
别那么骄傲 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 17:02

    To alter the color of the app bar only, you just have to change the colorPrimary value inside the colors.xml file and the colorPrimaryDark if you want to change the battery bar color as well:

    
      #B90C0C
      #B90C0C
      #D81B60
    
    

提交回复
热议问题