android棒棒糖通知背景色 [英] android lollipop notification background colour
问题描述
android 棒棒糖中是否可以更改通知的背景颜色.
我注意到有些通知是白色的,有些是浅灰色的,有些是深灰色的.
(来源:
(来源:sftcdn.net)
您可以看到音乐播放器通知具有深灰色背景.在第二个屏幕截图中,有些是浅灰色的.
如何设置这种颜色?是否有可能完全改变颜色,例如任何十六进制代码.或者您可以从模板中选择它们,例如材料暗材料光.
感谢您抽出时间来回答
那个背景是由 Material Design 本身设置的,它应该是白色的,对于设计来说.
或者您可以制作自定义布局.
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
That background is set by the material design itself, it is supposed to be white, for design matters.
Or you could make a custom layout.
这篇关于android棒棒糖通知背景色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!