Toast is an easy and convenient way to display a short message to user. Its implementation is as short as one line of code as shown below:

However, did you ever explore other features other than simply showing up a sentence? Developer can actually customise Toast by setting a custom layout and define the location within the app window. Furthermore, there is a trick on vision accessibility handling (Talkback)!

This article will cover totally four functions to the following attributes of Toast :

Custom layout Duration Position with offset Horizontal and vertical margins