diff --git a/apk/sample.apk b/apk/sample.apk new file mode 100644 index 0000000..73b1355 Binary files /dev/null and b/apk/sample.apk differ diff --git a/app/build.gradle b/app/build.gradle index 532cabd..0db5527 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -11,12 +11,22 @@ android { versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } + buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } + + android.applicationVariants.all { variant -> + variant.outputs.each { output -> + if (output.outputFile != null && output.outputFile.name.endsWith('.apk')) { + def name = "${rootDir}/apk/sample.apk" + output.outputFile = file(name) + } + } + } } dependencies { diff --git a/app/src/main/java/com/xw/samlpe/bubbleseekbar/MainActivity.java b/app/src/main/java/com/xw/samlpe/bubbleseekbar/MainActivity.java index f2e1517..8ada5cc 100644 --- a/app/src/main/java/com/xw/samlpe/bubbleseekbar/MainActivity.java +++ b/app/src/main/java/com/xw/samlpe/bubbleseekbar/MainActivity.java @@ -9,6 +9,7 @@ import android.view.MenuItem; import android.view.View; import android.widget.TextView; +import android.widget.Toast; import com.xw.repo.BubbleSeekBar; @@ -49,7 +50,14 @@ public void onClick(View view) { } }); - mBubbleSeekBar5.setOnProgressChangedListener(new BubbleSeekBar.OnProgressChangedListener() { + mBubbleSeekBar0.setOnProgressChangedListener(new BubbleSeekBar.OnProgressChangedListenerAdapter() { + @Override + public void getProgressOnActionUp(int progress) { + Toast.makeText(MainActivity.this, "progressOnActionUp:" + progress, Toast.LENGTH_SHORT).show(); + } + }); + + mBubbleSeekBar5.setOnProgressChangedListener(new BubbleSeekBar.OnProgressChangedListenerAdapter() { @Override public void onProgressChanged(int progress) { mStringBuilder.delete(0, mStringBuilder.length()); @@ -73,6 +81,13 @@ public void onScrollChanged(ObservableScrollView scrollView, int x, int y, int o } }); + mBubbleSeekBar6.setOnProgressChangedListener(new BubbleSeekBar.OnProgressChangedListenerAdapter() { + @Override + public void getProgressOnFinally(int progress) { + Toast.makeText(MainActivity.this, "progressOnFinally(int):" + progress, Toast.LENGTH_SHORT).show(); + } + }); + } @Override diff --git a/sample.apk b/sample.apk deleted file mode 100644 index 5d429f9..0000000 Binary files a/sample.apk and /dev/null differ