Handling ProgressBars Edit Page Page History Overview https://guides.codepath.com/android/handling-progressbars ProgressBar is used to display the progress of an activity while the user is waiting. You can display an indeterminate progress (spinning wheel) or result-based progress. Indeterminate We can display an indeterminate progress bar which we show to indicate waiting: <ProgressBar android:id= "@+id/pbLoading" android:visibility= "invisible" android:layout_width= "wrap_content" android:layout_height= "wrap_content" /> and then manage the visibility in the activity: // on some click or some loading we need to wait for... ProgressBar pb = ( ProgressBar ) findViewById ( R . id . pbLoading ); pb . setVisibility ( ProgressBar . VISIBLE ); // run a background job and once complete pb . setVisibility ( ProgressBar . INVISIBLE ); Typically you want to try to put the ProgressBar in the place whe...