android lollipop notification background colour

2019-02-18 11:48发布

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.

http://cdn.gottabemobile.com/wp-content/uploads/Android-Lollipop-on-the-Moto-X-2014-1.jpg

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

2条回答
不美不萌又怎样
2楼-- · 2019-02-18 12:01

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.

查看更多
我只想做你的唯一
3楼-- · 2019-02-18 12:20

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.

查看更多
登录 后发表回答