2014-11-18 13 views
6

मैं इसएंड्रॉयड लॉलीपॉप अधिसूचना सफेद रिक्त मंडली

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

बहुत ही सरल किया, इस आज तक मैं गठजोड़ 7. शीर्ष ओर सूचना आइकन सफेद सर्कल दिखाया जा रहा है के लिए मेरे लॉलीपॉप ओएस मिला पूरी तरह से काम करता है। मैं कैसे इसे ठीक कर सकता हूं? जब मैं शीर्ष से खींचता हूं, अधिसूचना इसके अंदर सामान्य दिखती है।

उत्तर

0

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

उस पृष्ठ पर, आप के तहत "डोंट" देख सकते हैं, अपने सूचना आइकन केवल दो रंगों होना चाहिए: पारदर्शी पृष्ठभूमि पर सफेद। कम प्रतिबंधों के साथ, खींचा गया अधिसूचना में आइकन एक अलग है।

संबंधित मुद्दे