3. Toast Message
A Toast provides simple feedback about an operation
in a small popup.
The Toast only fills enough space to wrap the text of
the message.
The Toast displays on top of the current activity, but
the activity is still visible and interactive.
8. Specify Toast Duration
The Toast Object has two predefined durations.
1. LENGTH_LONG ~3.5 seconds
2. LENGTH_SHORT ~2 seconds
You can’t specify a custom duration.
9. Specify Location of Toasts
A standard toast notification appears near the bottom
of the screen, centered horizontally.
You can change this position with the setGravity(int,
int, int) method.
This accepts three parameters: a Gravity constant, an
x-position offset, and a y-position offset.
10. Questions
What is Toast? Explain with Example?
Explain all the parameters of makeText()method.