Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Positioning Progress Dialog or Custom Progress Dialog

I don't know how to position the progress dialog(the one with the rotating image). When my application starts its display an full screen image and a progress dialog box. I need to moved the progress dialog box a little lower.

Thanks Rajesh

like image 226
user278445 Avatar asked Feb 24 '10 19:02

user278445


People also ask

What can I use instead of progress dialog android?

ProgressBar is best alternative for ProgressDialog.

What is progress dialog in android?

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 are types of progress bar in android?

Progress bar supports two modes to represent progress: determinate, and indeterminate. For a visual overview of the difference between determinate and indeterminate progress modes, see Progress & activity.


1 Answers

I've tried this one and works:

ProgressDialog dialog = new ProgressDialog(this);
dialog.getWindow().setGravity(Gravity.BOTTOM);
like image 89
msani Avatar answered Oct 06 '22 06:10

msani