Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.JeetR:CircularProgressBar-android:<latest_version>'
}
From XML
Provided below is a dummy use case showing usage of all the parameters
<com.jeet.circularprogressbar.CircularProgressBar
android:id="@+id/customRoundProgressBar"
android:layout_width="100dp"
android:layout_height="100dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:maxProgressLimit="60"
app:progress="50"
app:maxAnimationDuration="2500"
app:animationInterpolator="AccelerateDecelerateInterpolator"
app:showProgressText="true"
app:progressTextSize="16sp"
app:progressTextColor="@color/black"
app:progressBarColor="@android:color/holo_red_dark" />
maxProgressLimit is 100 by default you can also set minProgressLimit