Android Question Transparent white icon is not seen on white background

scsjc

Well-Known Member
Licensed User
Longtime User
I would like to know how to make the icon visualize with a white line, and when the app background is white it will continue to be displayed.

I use this code in the notification, and I choose the icon inside the folder ... objects / res / drawable / icon.png


B4X:
    Dim notification As Notification
    notification.Initialize2(notification.IMPORTANCE_LOW)
    notification.Icon = "icono"
icono:

1580816431406.png


result:

1580816170250.png
 

scsjc

Well-Known Member
Licensed User
Longtime User
OK, I get this:

View attachment 88312

Edit: uploaded larger picture :)

If I put the icon with LargeIcon with the same icon, I don't know why I see the app icon in color, then it works well on a dark and light screen.

But what I want is for the icon to be a white or black line, not the color one.


B4X:
nb.LargeIcon(LoadBitmapResize(File.DirAssets, "icontray.png", 256dip, 256dip, False))


1580994769606.png
 
Upvote 0
Top