Skip to content

Commit

Permalink
Add ProgressViewAnimation documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves authored Mar 16, 2020
1 parent e11fbbc commit fbd6d08
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ progressView.highlightView.colorGradientEnd = ContextCompat.getColor(this, R.col
progressView.highlightView.colorGradientStart = ContextCompat.getColor(this, R.color.colorPrimary)
```

### Filling Animation
We can implement the filling animation using below attributes or method.
### Progress filling Animation
We can implement progress filling animation using the below attributes or method.

```gradle
app:progressView_autoAnimate="true" // starts filling animation automatically when progress is changed.
Expand All @@ -100,6 +100,25 @@ or we can animate manually using below method.
progressView.progressAnimate()
```

### ProgressViewAnimation
We can implement progress animations when the progress value is changed.

```kotlin
BalloonAnimation.NORMAL
BalloonAnimation.BOUNCE
BalloonAnimation.DECELERATE
BalloonAnimation.ACCELERATEDECELERATE
```

NORMAL | BOUNCE | DECELERATE | ACCELERATEDECELERATE |
| :---------------: | :---------------: | :---------------: | :---------------: |
| <img src="https://user-images.githubusercontent.com/24237865/76772026-926bd900-67e3-11ea-9843-13322bdb5328.gif" align="center" width="100%"/> | <img src="https://user-images.githubusercontent.com/24237865/76772034-9566c980-67e3-11ea-9bec-11efb6e2e4c0.gif" align="center" width="100%"/> | <img src="https://user-images.githubusercontent.com/24237865/76772038-9697f680-67e3-11ea-8fd8-3c1dd637fb73.gif" align="center" width="100%"/> | <img src="https://user-images.githubusercontent.com/24237865/76772042-97c92380-67e3-11ea-9a3b-60d5969af42c.gif" align="center" width="100%"/> |

If we want to use our customized `interpolator`, we can use below method.
```java
progressView.interpolator = new NiceInterpolator();
```

### Hilighting Effect
We can give a highlighting effect on the progress bar when clicked.

Expand Down

0 comments on commit fbd6d08

Please sign in to comment.