5.3.10. Toasts for Displaying Messages

A Toast (package android.widget) briefly displays a message, then disappears from the screen. Toasts are often used to display minor error messages or informational messages, such as that the quiz will be reset after the user changes the app’s preferences. When the user changes the preferences, we display a Toast to indicate that the quiz will start over. We also display a Toast to indicate that at least one region must be selected if the user deselects all regions—in this case, the app sets North America as the default region for the quiz.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset