How to get the default notification background color for custom notification in Lollipop?

前端 未结 5 1410

I\'m having an issue with the color of my custom notification background in Lollipop. It\'s black where it should be white. The textColor is OK:

I\'m using



        
5条回答
  •  旧巷少年郎
    2021-02-07 06:24

    I'm not sure what the theme of the background is but I just set the background of my custom layouts (small view and large view) to a dark colour in the xml. This then matches the pre-Lollipop notifications more closely.

    I find it bizarre that the appearance of android:TextAppearance.StatusBar.EventContent.Title doesn't adjust to a dark colour for Lollipop when the standard notification colour is white!

提交回复
热议问题