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
xmlns:circleProgress="http://schemas.android.com/apk/res-auto"
android:id="@+id/crc_standard"
android:layout_width="150dp"
android:layout_height="150dp"
android:layout_gravity="center"
circleProgress:circleProgressValue="75" />
For more examples, check the demo project.
circleProgressThickness
: controls the thickness of the circlecircleProgressColor
: the color of the circlecircleProgressValue
: the "progress" (in the 0-100 range)circleProgressStartAngle
: starting anglecircleProgressText
: optional text inside the circlecircleProgressTextColor
: above text's colorcircleProgressTextSize
: above text's sizecircleProgressStartAnimation
: one ofnone
,roll
,fadeIn
,incremental
,thicknessExpand
.