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.
A:
Adding android:gravity="bottom" to the outermost XML element in the layout might do it. Not sure if this moves the dialog or the contents of it.
matto1990
2010-08-02 23:15:48
A:
You can call ProgressDialog#getWindow#setGravity(...)
to change the gravity.
So:
ProgressDialog dialog = ProgressDialog.show(AContext, "Test", "On the bottom");
dialog.getWindow().setGravity(Gravity.BOTTOM);
Qberticus
2010-08-03 00:48:40
Thanks! Works perfectly.
oliverwhite
2010-08-04 20:45:42