From 0a617ad5611729dca5d17cc4d020fc907ee9e42e Mon Sep 17 00:00:00 2001 From: flyou <553274238@qq.com> Date: Thu, 16 Feb 2017 18:49:10 +0800 Subject: [PATCH] fit infer --- app/build.gradle | 2 +- .../nicecircleprogressbar/MainActivity.java | 22 +++++++++---------- build.gradle | 2 ++ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0a26850..f4299da 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -26,5 +26,5 @@ dependencies { }) compile 'com.android.support:appcompat-v7:25.1.0' testCompile 'junit:junit:4.12' - compile project(path: ':progressbarlibrary') + compile 'com.github.flyou:NiceProgressBar:1.0' } diff --git a/app/src/main/java/com/xdja/nicecircleprogressbar/MainActivity.java b/app/src/main/java/com/xdja/nicecircleprogressbar/MainActivity.java index cbf445d..62935e0 100644 --- a/app/src/main/java/com/xdja/nicecircleprogressbar/MainActivity.java +++ b/app/src/main/java/com/xdja/nicecircleprogressbar/MainActivity.java @@ -35,17 +35,17 @@ protected void onCreate(Bundle savedInstanceState) { //or progressbar3.setTextMax(100) .showWithPercent(true) -// .setProgressBarListener(new CircleProgressBar.ProgressBarListener() { -// @Override -// public void onProgressBarComplete() { -// // TODO: what you want -// } -// -// @Override -// public void onProgressBarStart() { -// // TODO: what you want -// } -// }) + .setProgressBarListener(new NiceProgressBar.ProgressBarListener() { + @Override + public void onProgressBarComplete() { + // TODO: do what you want + } + + @Override + public void onProgressBarStart() { + // TODO: do what you want + } + }) .show(); } diff --git a/build.gradle b/build.gradle index 54bb68b..b2220fe 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,9 @@ buildscript { allprojects { repositories { jcenter() + maven { url 'https://jitpack.io' } } + } task clean(type: Delete) {