问题
Is it possible to change the background colour of notifications in android lollipop.
I noticed that some notifications are white, some light grey and some are dark grey.
(source: gottabemobile.com)
(source: sftcdn.net)
You can see the music player notification has a dark grey background. and in the second screenshot some are light grey.
How do I set this colour? And is it possible to completely change the colour e.g. any hex code. Or can you select them from a template such as material dark material light.
Thanks for taking the time to answer
回答1:
That background is set by the material design itself, it is supposed to be white, for design matters.
Take a look here!
Or you could make a custom layout.
回答2:
you are talking about android programing or just for you phone? if for programing, you are just can use a custom layout for your notif, here is an example,
and you can look here too
good luck.
来源:https://stackoverflow.com/questions/30560279/android-lollipop-notification-background-colour