anoopmail/android-circular-progress-bar


Round progress bar for android

Download


Step 1. Add the JitPack repository to your build file

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

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.anoopmail:android-circular-progress-bar:1.0'
	}
	dependencies {
		implementation("com.github.anoopmail:android-circular-progress-bar:1.0")
	}
	<dependency>
	    <groupId>com.github.anoopmail</groupId>
	    <artifactId>android-circular-progress-bar</artifactId>
	    <version>1.0</version>
	</dependency>

                            
    libraryDependencies += "com.github.anoopmail" % "android-circular-progress-bar" % "1.0"
        
        

                            
    :dependencies [[com.github.anoopmail/android-circular-progress-bar "1.0"]]
        
        

Readme


Circular Progress Bar

<img src="http://kmdev.se/img/gh-cpb.png" width="300" />

Simple single android view component that can be used to showing a round progress bar. It can be customized with size, stroke size, colors and text etc. See image for some example. Progress change will be animated.

##How to use Add it to your XML like this (or programmatically by code). The smallest size specified for width and height will be used as diameter of the circle.

<se.kmdev.circularprogressbar.CircularProgressBar
        android:id="@+id/circularProgress"
        android:layout_width="180dp"
        android:layout_height="180dp"/>

You can change the progress calling (with a value between 0 and 100):

public void setProgress(int progress)

The progress bar is customizable by changing any of the available settings

public void setProgressColor(int color)
public void setProgressWidth(int width)
public void setTextColor(int color)
public void showProgressText(boolean show)
public void useRoundedCorners(boolean roundedCorners)

Good luck.