Skip to content

This is the repo for filled Circular Progress Bar Android. Please go through readme.md to get more details about working and setup in android.

License

Notifications You must be signed in to change notification settings

JeetR/CircularProgressBar-android

Repository files navigation

CircularProgressBar-android

Latest version

How To install

Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}
Step 2. Add the dependency
	dependencies {
	        implementation 'com.github.JeetR:CircularProgressBar-android:<latest_version>'
	}

How to use

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

Result

Result Image

you can access this view using findViewById(R.id.customRoundProgressBar) programatically and setup these parameters from the code

Project executed with Determinant Studios (hey[at]determinantstudios.com)

About

This is the repo for filled Circular Progress Bar Android. Please go through readme.md to get more details about working and setup in android.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages