Progress Dialog

from the CommonsWare Community archives

At November 10, 2019, 3:32pm, Pvr asked:

I want to Implement custom Progress Dialog (includes TextView, Background, Button, Percentage of Progress, Custom Progressbar colour)
I searched in Google but not found anything helpful , could you help me with this


At November 10, 2019, 3:46pm, mmurphy replied:

If you ask specific questions, I can try.


At November 10, 2019, 4:06pm, Pvr replied:

Okay
How to show my XML layout file as a Progress Dialog


At November 10, 2019, 4:23pm, mmurphy replied:

I cover dialogs in The Busy Coder’s Guide to Android Development. This includes creating dialogs with a custom layout.

There used to be a ProgressDialog in the Android SDK. This has been deprecated. Nowadays, if you want to create a dialog that shows progress, you just create a dialog that happens to do something to show progress. Whether you use a ProgressBar, an ImageView with a drawable (e.g., LevelListDrawable), or something else is up to you.