A simple progress indicator on a circle.
- API 9+
Just add the library to your project and add a view like this:
<com.github.kratorius.circleprogress.CircleProgressView
android:id="@+id/crc_standard"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_gravity="center"
circle:value="75" />
For more examples, check the demo project.
thickness
: controls the thickness of the circlecolor
: the color of the circlevalue
: the "progress" (in the 0-100 range)startAngle
: starting angletext
: optional text inside the circletextColor
: above text's colortextSize
: above text's sizestartAnimation
: one ofnone
,roll
,fadeIn
,incremental
,thicknessExpand
.