问题
I change the top color of the icon and the app name by using setColor method of the NotificationCompat.Builder, The problem is that the displayed color doesn't match the provided one as it gets darker in the notification. my color is #21bbe6 I did find out Android N notification title and icon color is darker, but I still don't understand why, and how to deal with it. https://imgur.com/a/6nx4EsA
回答1:
Google decided to restrict acceptable colors in Notification when using setColor. It's undocumented!
来源:https://stackoverflow.com/questions/54071779/setcolor-small-icon-notification-android