How to implement a material design circular progress bar in android

前端 未结 8 886
小鲜肉
小鲜肉 2020-12-07 15:35

I want to make a material design circular progress bar like the one in Inbox by Gmail android app. How do I achieve this (in pre-lollipop devices)?

Am trying to achie

8条回答
  •  醉酒成梦
    2020-12-07 16:07

    The platform uses a vector drawable, so you can't reuse it as in in older versions.
    However, the support lib v4 contains a backport of this drawable : http://androidxref.com/5.1.0_r1/xref/frameworks/support/v4/java/android/support/v4/widget/MaterialProgressDrawable.java It has a @hide annotation (it is here for the SwipeRefreshLayout), but nothing prevents you from copying this class in your codebase.

提交回复
热议问题