Android notification icon color is not changed when background color is white

前端 未结 2 1941
醉梦人生
醉梦人生 2020-12-31 03:18

I upgraded android 6.0 and my app have problem.

when the status bar background color is not white, notification icon is good. (notification icon png has white and al

2条回答
  •  既然无缘
    2020-12-31 04:03

    It's late to answer, but for others who have the same problem,

    I had this problem too and I found that the problem is with graphical icon. You can solve the problem by using this online tool. open this link:

    https://romannurik.github.io/AndroidAssetStudio/icons-notification.html#source.type=image&source.space.trim=1&source.space.pad=0&name=ic_stat_call_white

    choose your image ( with large dimension ), download the resource and copy them to your project.

    and finally set the notification icon using .setSmallIcon(R.drawable.ICON_NEW_NAME)

    hope this helps

提交回复
热议问题