Page 57 - Xamarin Android Application Development
P. 57
Dialogs and Toast 53
Toast
A toast is a simple feedback about an operation in a small popup. It only fills the amount of
space required for the message and the current activity remains visible and interactive. Toasts
automatically disappear after a timeout.
We have seen dialogs which take user interaction, but in case of toasts user interaction is not needed.
For example: you have created some task successfully and you want to notify the user that it’s a
success.
The following example would help you to use it.
As you see in the above code snippet; familiar code is written where two buttons are extracted from
the layout and the respective click events are subscribed.

