6

इम प्रदर्शित मेरी ऐप्लिकेशन में सूचनाएं - लेकिन एंड्रॉयड संस्करण Lolipop पर किसी कारण के लिए अपने इस तरह ग्रे रंग के वृत्त प्रदर्शित बड़े आइकन के बगल में:बड़े अधिसूचना आइकन के बगल में ग्रे सर्कल?

enter image description here

किसी को भी एक विचार है क्यों हो रहा है?

builder = new NotificationCompat.Builder(context) 
        // Set Icon 
        .setSmallIcon(R.drawable.ic_launcher) 
        .setLargeIcon(icon) 
        // Set Ticker Message 
        .setTicker(message) 
        // Set Title 
        .setContentTitle(message) 
        // Set Text 
        .setContentText(context.getString(R.string.app_name)) 
        // Add an Action Button below Notification 
        // .addAction(R.drawable.share, 
        // context.getString(R.string.share), pendingShare) 
        // Set PendingIntent into Notification 
        .setContentIntent(contentIntent) 
        // Dismiss Notification 
        .setAutoCancel(true) 
        .setSound(
          Uri.parse("android.resource://" 
            + context.getPackageName() 
            + "/" 
            + prefs.getInt(Constants.NOTIF_SOUND, 
              R.raw.al_affassi_full))); 
+0

मुझे लगता है कि है छोटा आइकन जो आपने सेट किया है। 'SetSmallIcon (R.drawable.ic_launcher)' –

+0

@PankajKumar पर टिप्पणी करने के बाद प्रयास करें, जिस तरह से अधिसूचना ध्वनि बनाती है लेकिन कोई सूचना प्रदर्शित नहीं होती है। –

उत्तर

3

आपका सूचना आइकन यहां से अधिसूचना डिजाइन का पालन करना होगा: iconography notifications

सूचना आइकन पूरी तरह से सफेद होना चाहिए

यहाँ मेरी कोड है, जिसमें मैं अपने सूचनाएं बनाती है। साथ ही, सिस्टम आइकन को स्केल और/या अंधेरा कर सकता है।

संपादित

इस छवि के साथ की कोशिश (छवि सफेद है और /// के बीच है)

/// small icon ///

+0

मैंने अपना छोटा आइकन सफेद और 16x16px बनाया है लेकिन एक ही समस्या है, सर्कल खड़ा है और न ही इसके अंदर आइकन आते हैं –

+0

क्या आप मेरे साथ अपने सफेद छोटे आइकन को साझा कर सकते हैं कृपया – Drakkin

+0

यहां यह है http://s29.postimg.org/sk7szbfur /small_icon.png –

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