You try it
Create a small form that pretends to gather information on the user to create a profile (name, age, address, and so on). Add an image you can tap on and two buttons: one to accept the entered info and one to cancel it.
If the user taps on the image, put up a dialog box with a message, but handle the tap itself in ViewModel
.
Handle the button clicks in ViewModel
. On clicking Cancel, put up a toast acknowledging the cancellation. On clicking OK, use Snackbar
to show what info they have saved, nicely formatted.