Android has a simple way of displaying a piece of message in form of a Toast, i.e., a message displayed to user regarding the status of work sometimes values depending upon requirement.

if you want to get full tutorial on simple toast visit Simple Tutorial On Toast

In this tutorial i will show you a custom toast by which we can display a toast on different positions on screen.




Creating MainActivity File :

Adding 5 buttons to display toast on 5 different sides

Creating activity_main.xml


Now we will be creating a custom toast layout



Output :

custom toast

Show Buttons
Hide Buttons
Read previous post:
Android Tutorial on Shared Preferences