Android Question how to change native toast background color?

DonManfred

Expert
Licensed User
Longtime User
to alter the background color of a classic toast message?
no.

You can use one of the Libraries available to show custom ones.
Or you create a small wrapper for th code you posted.

You also can use a Elevated Panel to show your own implementation...
 
Last edited:
Upvote 0

AscySoft

Active Member
Licensed User
Longtime User
You can customize it with CSBuilder
B4X:
Dim cs As CSBuilder
ToastMessageShow(cs.Initialize.Size(20).Color(Colors.Black).Append("Pick a client.").BackgroundColor(Colors.White).PopAll, True)
On some devices background color is white, on others (Android 6+) is gray/black - this mean that BackgroundColor(Colors.White) does not do it's job
TO @DonManfred I am not so good as others to java, even if it is a small wrapper.:(
 
Upvote 0
Top