oliverwhite oliverwhite - 1 year ago 155
Android Question

How to change the position of a progress dialog?

I'm developing an android app and need to know how to change the positioning of a progress dialog. I need it to be positioned at the bottom of the screen instead of at the center like it is by default.

Answer Source

You can call ProgressDialog#getWindow#setGravity(...) to change the gravity.


ProgressDialog dialog = ProgressDialog.show(AContext, "Test", "On the bottom");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download