kooldown
Circular progress animation with duration
Download
implementation 'me.toptas.kooldown:kooldown:0.1'
Usage
<me.toptas.kooldown.Kooldown android:layout_width="200dp"
android:layout_centerInParent="true"
android:id="@+id/kd"
app:kd_activeColor="@color/colorAccent"
app:kd_duration="2000"
app:kd_inactiveColor="#dedede"
app:kd_startAngle="90"
app:kd_autoStart="true"
app:kd_progress="270"
app:kd_strokeWidth="20"
android:layout_height="200dp"/>
Parameters
kd_duration
: Duration to complete animationkd_activeColor
: Active color of circlekd_inactiveColor
: Inactive color of circlekd_strokeWidth
: Stroke width of circlekd_startAngle
: Start point of animation (Does not effect duration or speed)kd_progress
: Max angle of animation. Default value is 360 for a complete circlekd_autoStart
: Automatically starts animation