简体   繁体   English

android棒棒糖通知背景颜色

[英]android lollipop notification background colour

Is it possible to change the background colour of notifications in android lollipop. 是否可以在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 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 eg any hex code. 是否可以完全改变颜色,例如任何十六进制代码。 Or can you select them from a template such as material dark material light. 或者您可以从模板中选择它们,例如材质深色材质光。

Thanks for taking the time to answer 感谢您抽出宝贵时间来回答

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. 或者您可以制作自定义布局。

you are talking about android programing or just for you phone? 你在谈论android编程还是只为你的手机? if for programing, you are just can use a custom layout for your notif, here is an example , 如果要编程,你只需要为你的notif使用自定义布局, 这里有一个例子

and you can look here too 你也可以在这里看看

good luck. 祝好运。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM