android棒棒糖通知白色空圈

use*_*732 6 notifications android

我这样做了

              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());
Run Code Online (Sandbox Code Playgroud)

非常简单,直到今天我的棒棒糖操作系统为nexus 7完美运行.顶部的通知图标显示白色圆圈.我该怎么办?当我从顶部拖动时,通知内部看起来正常.

小智 0

http://developer.android.com/design/patterns/notifications.html

在该页面上,您可以在“不要”下看到,您的通知图标应该只有两种颜色:透明背景上的白色。下拉通知中的图标是不同的,限制较少。