Reputation: 2053
I want to style all the android.app.ProgressDialog
s 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?
Upvotes: 22
Views: 13920
Reputation: 2258
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.
Upvotes: 3
Reputation: 3785
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
Upvotes: 5