Skip to content

Commit 7212497

Browse files
committed
Update 1.0.3
1 parent fa05e0f commit 7212497

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ dependencies {
3232
Or Gradle Maven Central:
3333

3434
```groovy
35-
compile 'com.github.gigamole.arcprogressstackview:library:1.0.2'
35+
compile 'com.github.gigamole.arcprogressstackview:library:1.0.3'
3636
```
3737

3838
Or Maven:
3939
```xml
4040
<dependency>
4141
<groupId>com.github.gigamole.arcprogressstackview</groupId>
4242
<artifactId>library</artifactId>
43-
<version>1.0.2</version>
43+
<version>1.0.3</version>
4444
<type>aar</type>
4545
</dependency>
4646
```

app/src/main/java/com/gigamole/arcprogressstackview/MainActivity.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,12 @@ public void onCheckedChanged(final CompoundButton buttonView, final boolean isCh
201201
break;
202202
case R.id.cb_shadowing:
203203
mArcProgressStackView.setIsShadowed(isChecked);
204+
mArcProgressStackView.postInvalidate();
204205
mWrapperShadow.setVisibility(isChecked ? View.VISIBLE : View.GONE);
205206
break;
206207
case R.id.cb_rounding:
207208
mArcProgressStackView.setIsRounded(isChecked);
209+
mArcProgressStackView.postInvalidate();
208210
break;
209211
case R.id.cb_show_model_bg:
210212
mArcProgressStackView.setModelBgEnabled(isChecked);
@@ -228,6 +230,7 @@ public void onCheckedChanged(final CompoundButton buttonView, final boolean isCh
228230
model.setColors(isChecked ? new int[]{mStartColors[i], mEndColors[i]} : null);
229231
}
230232
mArcProgressStackView.requestLayout();
233+
mArcProgressStackView.postInvalidate();
231234
break;
232235
}
233236
}
@@ -266,12 +269,15 @@ public void onProgressChanged(final SeekBar seekBar, final int progress, final b
266269
break;
267270
case R.id.pb_shadow_distance:
268271
mArcProgressStackView.setShadowDistance(progress);
272+
mArcProgressStackView.postInvalidate();
269273
break;
270274
case R.id.pb_shadow_angle:
271275
mArcProgressStackView.setShadowAngle(progress);
276+
mArcProgressStackView.postInvalidate();
272277
break;
273278
case R.id.pb_shadow_radius:
274279
mArcProgressStackView.setShadowRadius(progress);
280+
mArcProgressStackView.postInvalidate();
275281
break;
276282
case R.id.pb_animation_duration:
277283
mArcProgressStackView.setAnimationDuration(progress);

library/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ apply plugin: 'com.android.library'
1818
apply plugin: "com.jfrog.bintray"
1919
apply plugin: 'com.github.dcendents.android-maven'
2020

21-
version = "1.0.2"
21+
version = "1.0.3"
2222

2323
android {
2424
compileSdkVersion 23
@@ -28,7 +28,7 @@ android {
2828
minSdkVersion 8
2929
targetSdkVersion 23
3030
versionCode 1
31-
versionName "1.0.2"
31+
versionName "1.0.3"
3232
}
3333
buildTypes {
3434
release {

library/src/main/java/com/gigamole/library/ArcProgressStackView.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,6 @@ private void resetShadowLayer() {
596596
mIsShadowed ? LAYER_TYPE_SOFTWARE : LAYER_TYPE_HARDWARE,
597597
mIsShadowed ? mProgressPaint : null
598598
);
599-
postInvalidate();
600599
}
601600

602601
// Set start elevation pin if gradient round progress
@@ -614,7 +613,6 @@ private void setStartGradientRoundedShadowLayer() {
614613
mIsShadowed ? LAYER_TYPE_SOFTWARE : LAYER_TYPE_HARDWARE,
615614
mIsShadowed ? mProgressPaint : null
616615
);
617-
postInvalidate();
618616
}
619617

620618
// Adjust color alpha(used for shadow reduce)

0 commit comments

Comments
 (0)