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:



result:

 

stevel05

Expert
Licensed User
Longtime User
This one?

On a motorola g6 play.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
OK, I get this:



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))


 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
How are you testing against a white background?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…