Android library to create arc progress bar with features : ... Just see the screenshots and the xml code
Add https://jitpack.io in settings.gradle.kts like this.
dependencyResolutionManagement {
..
repositories {
..
maven {
setUrl("https://jitpack.io")
}
}
}
Then, add dependencies
dependencies {
implementation 'com.github.JuanArton:Android-ArcProgressBar:0.7'
}
Attributes :
<com.juanarton.arcprogressbar.ArcProgressBar
android:layout_width="200dp"
android:layout_height="200dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:progress="70"
app:progressMax="100"
app:progressMin="0"
app:progressColor="@color/red"
app:trackColor="@color/black"
app:startAngle="140"
app:sweepAngle="260"
app:trackWidth="10dp"
app:progressWidth="10dp" />
Code (Kotlin) :
arcprogressbar.progress = 50f
arcprogressbar.progressColor = getColor(R.color.red)
arcprogressbar.trackColor = getColor(R.color.black)