Skip to content

Commit

Permalink
Update 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
GIGAMOLE committed May 14, 2016
1 parent fa05e0f commit 7212497
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ dependencies {
Or Gradle Maven Central:

```groovy
compile 'com.github.gigamole.arcprogressstackview:library:1.0.2'
compile 'com.github.gigamole.arcprogressstackview:library:1.0.3'
```

Or Maven:
```xml
<dependency>
<groupId>com.github.gigamole.arcprogressstackview</groupId>
<artifactId>library</artifactId>
<version>1.0.2</version>
<version>1.0.3</version>
<type>aar</type>
</dependency>
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,12 @@ public void onCheckedChanged(final CompoundButton buttonView, final boolean isCh
break;
case R.id.cb_shadowing:
mArcProgressStackView.setIsShadowed(isChecked);
mArcProgressStackView.postInvalidate();
mWrapperShadow.setVisibility(isChecked ? View.VISIBLE : View.GONE);
break;
case R.id.cb_rounding:
mArcProgressStackView.setIsRounded(isChecked);
mArcProgressStackView.postInvalidate();
break;
case R.id.cb_show_model_bg:
mArcProgressStackView.setModelBgEnabled(isChecked);
Expand All @@ -228,6 +230,7 @@ public void onCheckedChanged(final CompoundButton buttonView, final boolean isCh
model.setColors(isChecked ? new int[]{mStartColors[i], mEndColors[i]} : null);
}
mArcProgressStackView.requestLayout();
mArcProgressStackView.postInvalidate();
break;
}
}
Expand Down Expand Up @@ -266,12 +269,15 @@ public void onProgressChanged(final SeekBar seekBar, final int progress, final b
break;
case R.id.pb_shadow_distance:
mArcProgressStackView.setShadowDistance(progress);
mArcProgressStackView.postInvalidate();
break;
case R.id.pb_shadow_angle:
mArcProgressStackView.setShadowAngle(progress);
mArcProgressStackView.postInvalidate();
break;
case R.id.pb_shadow_radius:
mArcProgressStackView.setShadowRadius(progress);
mArcProgressStackView.postInvalidate();
break;
case R.id.pb_animation_duration:
mArcProgressStackView.setAnimationDuration(progress);
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ apply plugin: 'com.android.library'
apply plugin: "com.jfrog.bintray"
apply plugin: 'com.github.dcendents.android-maven'

version = "1.0.2"
version = "1.0.3"

android {
compileSdkVersion 23
Expand All @@ -28,7 +28,7 @@ android {
minSdkVersion 8
targetSdkVersion 23
versionCode 1
versionName "1.0.2"
versionName "1.0.3"
}
buildTypes {
release {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,6 @@ private void resetShadowLayer() {
mIsShadowed ? LAYER_TYPE_SOFTWARE : LAYER_TYPE_HARDWARE,
mIsShadowed ? mProgressPaint : null
);
postInvalidate();
}

// Set start elevation pin if gradient round progress
Expand All @@ -614,7 +613,6 @@ private void setStartGradientRoundedShadowLayer() {
mIsShadowed ? LAYER_TYPE_SOFTWARE : LAYER_TYPE_HARDWARE,
mIsShadowed ? mProgressPaint : null
);
postInvalidate();
}

// Adjust color alpha(used for shadow reduce)
Expand Down

0 comments on commit 7212497

Please sign in to comment.