Login example and case results.
The app is a Login that checks if the fields are empty. If you do a correct login, the app show a message.
I use Snackbar to show the error message when the fields are empty. This app runs on emulator and is developed on API 27.