Skip to content

Commit 5f7c058

Browse files
committed
Release version 1.0.6
1 parent a7c0984 commit 5f7c058

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ allprojects {
3232
And add a dependency code to your **module**'s `build.gradle` file.
3333
```gradle
3434
dependencies {
35-
implementation "com.github.skydoves:progressview:1.0.5"
35+
implementation "com.github.skydoves:progressview:1.0.6"
3636
}
3737
```
3838

@@ -56,6 +56,7 @@ Here is a basic example of implementing `ProgressView`.
5656
app:progressView_progress="40" // progress value.
5757
app:progressView_min="15" // min progress value.
5858
app:progressView_max="100" // max progress value.
59+
app:progressView_progressFromPrevious="true" // animates progress from previous progress.
5960
app:progressView_autoAnimate="true" // starts filling animation automatically when finishing inflate.
6061
app:progressView_radius="12dp" // the corner radius of the progressView and progress bar.
6162
app:progressView_padding="1dp" // the padding of the progress bar.
@@ -76,11 +77,21 @@ app:progressView_colorGradientStart="@color/md_yellow_100" // starting color of
7677
app:progressView_colorGradientEnd="@color/md_yellow_200" // ending color of the gradient.
7778
```
7879

80+
We can change the progress color and gradient colors using below methods.
81+
```kotlin
82+
progressView.highlightView.color = ContextCompat.getColor(this, R.color.colorPrimary)
83+
progressView.highlightView.colorGradientEnd = ContextCompat.getColor(this, R.color.colorPrimary)
84+
progressView.highlightView.colorGradientStart = ContextCompat.getColor(this, R.color.colorPrimary)
85+
```
86+
7987
### Filling Animation
8088
We can implement the filling animation using below attributes or method.
8189

8290
```gradle
8391
app:progressView_autoAnimate="true" // starts filling animation automatically when progress is changed.
92+
93+
// if you want to animate progress from previous progress.
94+
app:progressView_progressFromPrevious="true"
8495
```
8596

8697
or we can animate manually using below method.
@@ -219,6 +230,7 @@ colorBackground | Int(Color) | Color.WHITE | color of the container.
219230
colorGradientStart | Int(Color) | colorPrimary | starting color of the gradient.
220231
colorGradientEnd | Int(Color) | colorPrimary | ending color of the gradient.
221232
autoAnimate | Boolean | true | starts filling animation automatically when finishing inflate.
233+
progressFromPrevious | Boolean | false | animates progress from previous progress.
222234

223235
### Label
224236
Attributes | Type | Default | Description

dependencies.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
ext.versions = [
22
minSdk : 16,
33
compileSdk : 29,
4-
versionCode : 6,
5-
versionName : '1.0.5',
4+
versionCode : 7,
5+
versionName : '1.0.6',
66

77
gradleBuildTool : '3.5.3',
88
spotlessGradle : '3.27.2',
99
dokkaGradle : '0.9.17',
10-
bintrayRelease : '0.9.1',
10+
bintrayRelease : '0.9.2',
1111

12-
kotlin : '1.3.61',
12+
kotlin : '1.3.70',
1313
androidxAppcompat : '1.2.0-alpha03',
1414

1515
// for demo

0 commit comments

Comments
 (0)