2014-11-18 14 views
6

Tôi làm điều nàythông báo Lollipop android màu trắng hình tròn rỗng

   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()); 

Rất đơn giản, hoạt động này một cách hoàn hảo đến ngày hôm nay tôi đã nhận kẹo os của tôi cho mối quan hệ 7. biểu tượng thông báo trên đầu trang đang hiển thị vòng tròn màu trắng. Lam sao tôi co thể sửa no? Khi tôi kéo từ trên xuống, thông báo trông bình thường bên trong nó.

Trả lời

0

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

Trên trang đó, bạn có thể nhìn thấy dưới "Đừng", biểu tượng thông báo của bạn nên chỉ có hai màu: màu trắng trên nền trong suốt. Biểu tượng trong thông báo kéo xuống là một biểu tượng khác, với ít hạn chế hơn.

Các vấn đề liên quan