android lollipop notification background colour

我只是一个虾纸丫 提交于 2019-12-01 04:20:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!