kooldown

Additional

Language
Kotlin
Version
N/A
Created
Nov 29, 2018
Updated
Aug 9, 2019
Owner
Faruk Toptaş (faruktoptas)
Contributor
Faruk Toptaş (faruktoptas)
1
Activity
Badge
Generate
Download
Source code
APK file

Commercial

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 animation
  • kd_activeColor: Active color of circle
  • kd_inactiveColor: Inactive color of circle
  • kd_strokeWidth: Stroke width of circle
  • kd_startAngle: Start point of animation (Does not effect duration or speed)
  • kd_progress: Max angle of animation. Default value is 360 for a complete circle
  • kd_autoStart: Automatically starts animation

License

Apache License 2.0