Loading Indicator

Learn how to display a loading indicator and prevent user interaction with the views.

Flow overview

When the user clicks the login button, we will perform a data validation flow. If the data is valid, proceed to:

  1. Hide the login button to prevent a user from clicking the button
  2. Disable the username and password input fields to prevent a user from changing the text

Layout update

To show the indeterminate loading indicator, we are going to use a ProgressBar view. Let’s make ...