95

Those dark spinning progress dialogs in the Amazon and Engadget apps - are those standard in Android?

2 Answers 2

227

It's a ProgressDialog, with setIndeterminate(true).

From http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog

ProgressDialog dialog = ProgressDialog.show(MyActivity.this, "", 
                    "Loading. Please wait...", true);

An indeterminate progress bar doesn't actually show a bar, it shows a spinning activity circle thing. I'm sure you know what I mean :)

Sign up to request clarification or add additional context in comments.

4 Comments

ProgressDialog is discouraged. According to the link you posted: "Avoid ProgressDialog. [...] If you need to indicate loading or indeterminate progress, you should instead follow the design guidelines for Progress & Activity and use a ProgressBar in your layout."
Currently, ProgressDialog has been taken out of the docs and the solution does not appear to be viable any longer.
To dismiss the dialog, use dialog.dismiss();
ProgressDialog is now deprecated, check this answer: stackoverflow.com/a/45351516/5090196
36

Today things have changed a little.

Now we avoid use ProgressDialog to show spinning progress:

enter image description here

If you want to put in your app a spinning progress you should use an Activity indicators:

http://developer.android.com/design/building-blocks/progress.html#activity


Update

Thay have renamed the component to Progress Indicators now.

The new link for reference is: https://material.io/components/progress-indicators/android

2 Comments

Take a look here to see how to use it: stackoverflow.com/questions/12316365/…
@Rafael Miceli Your reference goes to 404 - Page Not Found

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.