I want to set a right gravity to a message inside my ProgressDialog.
I’ve tried to:
dialog = new ProgressDialog(activity);
dialog.getWindow().setGravity(Gravity.RIGHT);
dialog.setMessage(loadDialogMessage);
But still the gravity of the message is set to the right.
How can I do that ?
Something like this should do the trick :
I just looked at the source http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/app/ProgressDialog.java#147
and look at the textview’s id