【发布时间】:2016-03-14 11:41:57
【问题描述】:
用户向我发送关于通知图标是灰度的应用程序的屏幕截图。我有一个彩色图标。为什么?
我正在使用此代码来显示通知: 目标 api - 23.
NotificationCompat.Builder builder = new NotificationCompat.Builder(ctx);
Notification notification = builder.setContentIntent(pIntent)
.setSmallIcon(icon).setTicker(title).setWhen(when).setContentTitle(contentTitle)
.setContentText(contentText).setDefaults(defaults).build();
notification.flags = flags;
【问题讨论】:
标签: android notifications android-6.0-marshmallow