Ragini
Ragini

Reputation: 775

How to change notification dot color in Android Oreo

How to change notification dot color in android Oreo.

new NotificationCompat.Builder(context)
                .setSmallIcon(R.drawable.ic_notification_white)
                .setColor(ContextCompat.getColor(context, R.color.accent))

I tried with setColor() but it is not working.

Upvotes: 5

Views: 4390

Answers (1)

ArtiomLK
ArtiomLK

Reputation: 2260

We cannot change the icon badge color for Android Oreo

Sadly we cannot change its color as right now, the badge icon color takes the apps icon color and that is the color we see for the badge icon.

Hopefully, I am wrong or I did not do enough research, but none of the following classes had a method to change the icon badge color:

Upvotes: 4

Related Questions