Android AppCompat ProgressDialog?

13.9k Views Asked by At

I want to style all the android.app.ProgressDialogs in my app on pre-Lollipop versions to make them look like Material Design.

Maybe I'm missing something obvious: I'm looking for android.support.v7.app.ProgressDialog, but there is no such class in Android AppCompat library.

Should I write my own implementation of ProgressDialog from scratch? What is the reason it's not included in AppCompat library?

2

There are 2 best solutions below

0
On

Widget.AppCompat.* styles can be used starting from API 7.

There is currently no AppCompat style for the progress dialog since it relies on AnimatedVectorDrawable.

However, it's possible to write a custom drawable that has the same behavior and apply it to your ProgressDialog.

check out GIT

0
On

You can use other cool compatibility libraries besides AppCompat. There are cool libraries which brings fully animated Material Design components to pre-Lolipop Android on Github. The images are from Rey5137's "Material" library. You better use one of such libraries rather that writing from scratch.

material loading icon enter image description here