NiceProgressBar

Introduction: NiceProgressBar 好用的圆形进度条组件
More: Author   ReportBugs   
Tags:
圆形进度条-

a nice progressbar for android

step 1

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.flyou:NiceProgressBar:1.0.2'
}

step 2

add in you xml

  <com.xdja.progressbarlibrary.NiceProgressBar
        android:id="@+id/progressbar1"
        android:layout_width="150dp"
        android:layout_height="150dp"

        />

step 3

 this.progressbar1 = (NiceProgressBar) findViewById(R.id.progressbar1);
 progressbar1.setTextMax(88).show();

more

    progressbar2.setTextMax(33)
    .setTextColor(getResources().getColor(R.color.red))
    .setDefaultWheelColor(getResources().getColor(R.color.sandybrown))
    .setWheelColor(getResources().getColor(R.color.yellow))
    .show();

setpercent type and Listener

 progressbar3.setTextMax(100)
    .showWithPercent(true)
            .setProgressBarListener(new NiceProgressBar.ProgressBarListener() {
                @Override
                public void onProgressBarComplete() {
                    // TODO: do what you want
                }

                @Override
                public void onProgressBarStart() {
                    // TODO: do what you want
                }
            })
    .show();

}

License

NiceProgressBar is under the Apache2.0 license. See the LICENSE file for details.

Apps
About Me
GitHub: Trinea
Facebook: Dev Tools