8

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

user278445
  • 271
  • 5
  • 7

2 Answers2

5

I've tried this one and works:

ProgressDialog dialog = new ProgressDialog(this);
dialog.getWindow().setGravity(Gravity.BOTTOM);
msani
  • 53
  • 2
  • 5
0

I do a similar thing and I found that it was just easier to build a class that extends Dialog that shows the image and the Progress spinner.

CaseyB
  • 24,780
  • 14
  • 77
  • 112
  • 1
    Thanks. I did the similar thing. I just need the spinner when I start the app. So I added progressbar in my layout. – user278445 Feb 25 '10 at 00:12