简体   繁体   English

状态栏上的通知图标将变为白色框

[英]Notification icon on status bar is coming as white box

How do i customize the notification icon on the status bar in my phone running Android 5.0. 如何在运行Android 5.0的手机中自定义状态栏上的通知图标。 It always comes as a white box(image attached). 它总是以白色框的形式出现(附有图像)。

The notification icon in the notification bar comes colorful as expected but the status bar icon comes as white square box. 通知栏中的通知图标会像预期的那样变为彩色,但状态栏图标为白色方框。 在此处输入图片说明 l

android 5.0 uses the icon that you give him and puts a color filter on it. android 5.0使用您给他的图标,并在其上放置滤色器。 If you want to see your icon, you must use an icon with transparency (png). 如果要查看图标,则必须使用透明图标(png)。 I advice you to set another icon other than the icon of your application and remove the rectangle with rounded border. 我建议您设置除应用程序图标以外的其他图标,并删除带有圆角边框的矩形。

There is some restrictions for notification icons. 通知图标一些限制。 And also Lollipop doesn't show exactly what you set. 而且,棒棒糖也不会完全显示您的设置。 It flatifies the notification icons and also suggest you to use flat style icons. 它使通知图标平坦化,并建议您使用平面样式图标。

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

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