[英]Notification icon showing up in status bar but not in notification itself
这是因为Android要求通知栏中有一个白色图标。 因此将其更改为白色图标。
https://developer.android.com/guide/topics/ui/notifiers/notifications.html
Android基本上会做的是将您的墙漆成灰色。 实际上,您的墙正在显示,但带有灰色覆盖。
根据下面的问题,您可以加载可绘制对象并将其绘制为白色,如下所示:
yourWallIcon.setColorFilter(Color.WHITE)
请注意, yourWallIcon
必须是可绘制的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.