Skip to content

Commit

Permalink
v1.5 新demo sample.apk
Browse files Browse the repository at this point in the history
  • Loading branch information
woxingxiao committed Dec 28, 2016
1 parent 278fc53 commit a58f52e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
Binary file added apk/sample.apk
Binary file not shown.
10 changes: 10 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
17 changes: 16 additions & 1 deletion app/src/main/java/com/xw/samlpe/bubbleseekbar/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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());
Expand All @@ -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
Expand Down
Binary file removed sample.apk
Binary file not shown.

0 comments on commit a58f52e

Please sign in to comment.