通知托盘上的通知图标为白色 [英] Notification icon is white on the notification tray

查看:458
本文介绍了通知托盘上的通知图标为白色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通知托盘上的我的应用程序图标在Android 5上变为白色。
我看到了这个 Android 5 Lollipop中的通知栏图标变为白色,但如何在我的codenameone应用程序中更改它。

My app icon on the notification tray became white on android 5. I have seen this Notification bar icon turns white in Android 5 Lollipop , but how can I change it on my codenameone app.

推荐答案

可以在应用程序的src /文件夹下放置一个名为ic_stat_notify.png的24x24图标。
图标可以是带透明区域的白色。
构建服务器获取此图像,并将其用作项目中的通知图标。

It is possible to place a 24x24 icon named "ic_stat_notify.png" under the src/ folder of the app. The icon can be white with transparency areas. The build server picks up this image and uses it as the notification icon if found on the project.

这篇关于通知托盘上的通知图标为白色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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