Visual Feedback: Dialogs, Snackbars & Toasts
Mar 16 2021 · Kotlin 1.4, Android 11, Android Studio 4
Part 1: Visual Feedback: Dialogs, Snackbars & Toasts
08. Create & Display Toasts
This content was released on Mar 16 2021. The official support period is 6-months from this date.
Toasts are the simplest pop-up messages. They are unobtrusive, short-lived, wrap around their content, and display at the bottom of the screen. In the final episode of this course, learn how to create and display toasts to your user.
Heads up... You've reached locked video content where the transcript will be shown astext.
Toasts have been available for developers to use in their Android apps for a long time. The simplest form of pop-up message, they are unobtrusive and short-lived, wrap around their content and display at the bottom of the screen.
Toast.makeText(this, R.string.toast_copied_to_clipboard, Toast.LENGTH_LONG).show()