android - Why is my smallIcon for Notifications always greyed out? -


i tried making small icon 16x16, gray-scaled, nothing gray , white (the gray color being hex value 616161), create silhouette of application icon.

yet no matter shows white/gray square in notifications. doing wrong?

(my min api 21, assuming relevant)

follow this link

first let’s understand android documentation follows

“update or remove assets involve color. system ignores non-alpha channels in action icons , in main notification icon. should assume these icons alpha-only. system draws notification icons in white , action icons in dark gray.”

now easy miss , have seen many apps live in app store thousands of users haven’t followed mentioned guidelines.

so let me explain in detail how can convert notification icon android friendly 1 few clicks.

in favourite image editor open icon file. convert parts of image don’t want show transparent pixels. colors , non transparent pixels displayed in white. let go through example.

enter image description here

you can ask designer or use tool generate icon


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -