4

Since Lollipop, notification small icons are "masks" (only the alpha channel is used). I can verify this in the project I am working on: previously we had a colorful small icon, and it worked well on 4.4- devices but appeared as a white square on 5.0+ devices. (We updated the icon to fix this).

But now I see apps that manage to have colorful icons on 5.0+ devices!

How do they do it?

I realize I shouldn't even try to do that since the guidelines say the icon should be a white shape, but I am curious and would like to know how it is done.

I suspect this is related to the targetSdk, but didn't find any resources about it.

BoD
  • 10,838
  • 6
  • 63
  • 59
  • 2
    See my answer [here](http://stackoverflow.com/a/28387744/4193263). – ByteHamster Feb 20 '15 at 09:53
  • @ByteHamster Thanks! I suspected this. But it's very odd, because my project targets 19. So according to this answer, I should never have had the issue in the first place!? – BoD Feb 20 '15 at 09:56
  • 1
    possible duplicate of [Notification bar icon turns white in Android 5 Lollipop](http://stackoverflow.com/questions/28387602/notification-bar-icon-turns-white-in-android-5-lollipop) – BBdev Feb 20 '15 at 09:58
  • Hey @BoD. How did you convert the 'white square' to a proper icon on Android 5.0? I am unable to do this. – Diffy Apr 09 '15 at 07:35

0 Answers0