[英]android Lollipop notification white empty circle
我这样做了
Notification.Builder notificationBuilder = new Notification.Builder( getApplicationContext()); RemoteViews mContentView = new RemoteViews( getApplicationContext().getPackageName(), R.layout.custom_notification); Uri alertSound = RingtoneManager .getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); notificationBuilder.setSound(alertSound); mContentView.setTextViewText(R.id.text, getResources() .getString(R.string.activation_code) + ": " + mUUID); notificationBuilder.setContent(mContentView); notificationBuilder.setContentTitle(getResources() .getString(R.string.activation_code)); notificationBuilder .setSmallIcon(R.drawable.ic_launcher); notificationBuilder.setAutoCancel(true); NotificationManager manager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); manager.notify(11151990, notificationBuilder.getNotification());
非常简单,直到今天我的棒棒糖操作系统为nexus 7完美地工作。顶部的通知图标显示白色圆圈。我怎么能解决这个问题? 当我从顶部拖动时,通知内部看起来正常。
http://developer.android.com/design/patterns/notifications.html
在该页面上,您可以在“请勿”下看到,您的通知图标应该只有两种颜色:透明背景上的白色。 下拉通知中的图标不同,限制较少。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.