Visual Feedback: Dialogs, Snackbars & Toasts
Mar 16 2021 · Kotlin 1.4, Android 11, Android Studio 4
Part 1: Visual Feedback: Dialogs, Snackbars & Toasts
04. Use Alert Dialogs
This content was released on Mar 16 2021. The official support period is 6-months from this date.
Some actions such as deleting an email or a list are irreversible. When an irreversible action is about to be performed by the user it is advisible to warn the user in case they have made a mistake. This is when alert dialogs come in handy. Learn how to display an alert dialog in our app when the user clicks the “Clear List” button to make sure they actually wanted to take that action.