When using an android:targetSdkVersion >= 21 the small icon of a notification is limited in design:
'For 5.0 Lollipop "Notification icons must be entirely white".' When a notification icon is to colorful if will be defaulted to a white square with a grey circle as background.
For now it is possible to create a white small icon that will be used in the status bar, as well as the small icon, but it is not possible to set the background color.
In the builder add this to set the background color: builder.setColor(color), which will only affect the small icon background in the notification center.
A workaround to keep a colored notification icon is to set the android:targetSdkVersion to <21
When using an android:targetSdkVersion >= 21 the small icon of a notification is limited in design: 'For 5.0 Lollipop "Notification icons must be entirely white".' When a notification icon is to colorful if will be defaulted to a white square with a grey circle as background.
For now it is possible to create a white small icon that will be used in the status bar, as well as the small icon, but it is not possible to set the background color.
In the builder add this to set the background color: builder.setColor(color), which will only affect the small icon background in the notification center.
A workaround to keep a colored notification icon is to set the android:targetSdkVersion to <21