Tom
Tom

Reputation: 950

Android Notification smallIcon not displaying properly

So I've been working with Android Notifications and after setting a large image, I found out that my small image is actually not displaying properly.

As you can see on the following screenshot of the lockscreen, the background of the small icon is transparent. I want to set a specific colour there, just like the one Outlook.com is using:

a

Another example where the small icon shows next to the large one (please take notice of the small icon which is actually displaying, but not really noticable because there is just no background):

b

I've been thinking about changing the small icon to include the background colour, but obviously the colour would also be shown in the statusbar and that's wrong.

Upvotes: 3

Views: 1581

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006664

Try setColor() with NotificationCompat.Builder to set the accent color, which should be used by the colored circle behind the icon.

Upvotes: 2

Related Questions