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

前端 未结 5 1406

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:34

    Your app's targetSdkVersion must be 21.
    As Ahmed's answere, add another styles file in values-21 folder.