/Circular-Progress-Notifier

A circular progress notifier that displays progress percentage as well.

Primary LanguageJavaMIT LicenseMIT

Circular Progress Notifier

Circular Progress Notifier is, as the name suggests, a progress notifier that displays progress percentage as well.

This library was inspired by Colin Madere's blog post

Image

##Usage

  • 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 {
      
      	   compile 'com.github.anuraagbaishya:Circular-Progress-Notifier:v1.0'
      }
  • Step 3: Create a CircularProgressNotifier in your activity's xml

    <com.appex.circularprogressnotify.CircularProgress
      android:id="@+id/circular_progress"
      android:layout_width="200dp"
      android:layout_height="200dp"
      android:layout_centerInParent="true"/>`
  • Step 4: Declare an Object in your Activity

    CircularProgress circularProgress = (CircularProgress) findViewById(R.id.circular_progress);
    circularProgress.setProgress(25);`
  • To change the colour of progress bar:

    circularProgress.init(getApplicationContext(), backgroudColor,
              primaryColor,
              targetColor);

##Contributions Contributions are welcome. Please fork this project to make contributions.

##License This project is licensed under the terms of the MIT License.