Android棒棒糖通知背景颜色 [英] android lollipop notification background colour

查看:87
本文介绍了Android棒棒糖通知背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在android棒棒糖中更改通知的背景颜色.

我注意到有些通知是白色的,有些是浅灰色的,有些是深灰色的.


(来源:解决方案

对于设计而言,背景是由材料设计本身设置的,应该是白色的.

在这里看看!

或者您可以自定义布局.

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.

Take a look here!

Or you could make a custom layout.

这篇关于Android棒棒糖通知背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆