下面是我用来显示通知的代码。通知图标不显示在棒棒糖的状态栏中
notification = new Notification.Builder(context).setContentIntent(contentIntentTwo)
.setContentTitle("App name").setSmallIcon(R.drawable.ic_launcher).setLargeIcon(notificationLargeIconBitmap).getNotification();
通知和通知图标显示在下拉通知抽屉中,但不显示在棒棒糖状态栏中。
这里是什么样子的棒棒糖:
这种情况只有在棒棒糖。
这将发布链接,如果你找到了更好的解决方案在别处是个好主意。对于其他人,OP在这里问了同样的问题,得到了更好的回复:http://www.reddit.com/r/androiddev/comments/2qjsal/notification_icon_shows_in_white_in_status_bar/ – Nirmal 2015-02-10 21:08:11