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
 

stevel05

Expert
Licensed User
Longtime User
This one?
1580987448306.png


On a motorola g6 play.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
OK, I get this:

1580992152484.png


Edit: uploaded larger picture :)
 
Upvote 0

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

stevel05

Expert
Licensed User
Longtime User
How are you testing against a white background?
 
Upvote 0
Top