Position of Toast Message

Dave O

Well-Known Member
Licensed User
Longtime User
I'm hoping to show a "real" toast message in a certain position (unlike the various custom toast libraries, which are cosmetically (and often functionally) different).

The Android docs describe being able to position a toast message: https://developer.android.com/guide/topics/ui/notifiers/toasts.html#Positioning

Is this possible to do in B4A, either natively or with some JavaObject code?

As much as possible, I'm trying to get a standard Android look and feel to my B4A apps.

Thanks!
 
Upvote 0

Dave O

Well-Known Member
Licensed User
Longtime User
After some help from Erel and others, I've come up with a sub that uses Reflector and JavaObject to create a toast at a certain position.

Check it out in the Code Snippets section.

Cheers!
 
Upvote 0
Top