Define the position of the toast?
Closed this issue · 3 comments
In my app it would help greatly to define how close the toast is allowed to be at the bottom edge of the screen. Because there are some elements a user might want to interact with and that gets disturbed while the toast is being displayed.
Is it possible to add an option to define the position of the toasts?
SuperToasts can be set wherever using the setGravity() call and supplying a Gravity constant along with X and Y offsets just like standard Toasts. I haven't worked out a good way to do this with SuperActivityToasts but I'm looking into it.
Thanks for the suggestion!
- John
I just added the Gravity functionally of gravity at SuperActivityToasts, pull #54. I am not sure if it can be done in a more elegant way but this works for me 😄
Fixed with madlymads pull request.
Thanks!
John