Android Positioning Progress Dialog or Custom Progress Dialog
Asked Answered
C

2

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

Cullen answered 24/2, 2010 at 19:22 Comment(1)
you can set offset from the edge. https://mcmap.net/q/433708/-how-to-change-the-position-of-a-progress-dialogHerbart
M
5

I've tried this one and works:

ProgressDialog dialog = new ProgressDialog(this);
dialog.getWindow().setGravity(Gravity.BOTTOM);
Multiphase answered 7/4, 2011 at 22:51 Comment(0)
M
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.

Mudd answered 24/2, 2010 at 20:12 Comment(1)
Thanks. I did the similar thing. I just need the spinner when I start the app. So I added progressbar in my layout. <ProgressBar android:id="@+id/progress" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_x="135px" android:layout_y="360px" android:visibility="visible" android:layout_marginRight="12dip" />Cullen

© 2022 - 2024 — McMap. All rights reserved.