Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between Progressbar and progressDialog?

I have searched everywhere and read the official doc of Google. But I still don't see the difference between them.

When should we use ProgressBar and when should we use ProgressDialog?

like image 414
Mathieu Avatar asked Jan 15 '13 13:01

Mathieu


People also ask

What is ProgressDialog?

ProgressDialog is a modal dialog, which prevents the user from interacting with the app. Instead of using this class, you should use a progress indicator like ProgressBar , which can be embedded in your app's UI. Alternatively, you can use a notification to inform the user of the task's progress.

What can I use instead of ProgressDialog?

ProgressBar is best alternative for ProgressDialog.

What is the use of ProgressBar?

Progress bars are used to show progress of a task. For example, when you are uploading or downloading something from the internet, it is better to show the progress of download/upload to the user. In android there is a class called ProgressDialog that allows you to create progress bar.

What is ProgressBar in Android?

Android ProgressBar is a graphical view indicator that shows some progress. Android progress bar displays a bar representing the completing of the task. Progress bar in android is useful since it gives the user an idea of time to finish its task.


1 Answers

ProgressBar:

ProgressDialog:

The ProgressBar is a View, ProgressDialog is a Dialog.

like image 191
Ahmad Avatar answered Oct 12 '22 22:10

Ahmad