Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alxrm committed Feb 18, 2017
1 parent 7f87b95 commit 9e35f03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ allprojects {
Add the dependency:
```Groovy
dependencies {
compile 'com.github.alxrm:audiowave-progressbar:0.7'
compile 'com.github.alxrm:audiowave-progressbar:0.8'
}
```

Expand All @@ -38,6 +38,9 @@ dependencies {
|chunkSpacing|dimension|spacing between chunks|
|chunkRadius|dimension|how much corners of every chunk will be rounded|
|progress|float|should be 0..100, it's float so you can easily animate this|
|animateExpansion|boolean|toggle the animated expansion|

__Note: If you are going to place this in a RecyclerView item, you have to set `animateExpansion` to `false`, otherwise you'll see an incredibly laggy scroll (check out the example)__

## In code

Expand All @@ -49,6 +52,7 @@ Settle the wave somewhere in your XML like this:
android:layout_width="match_parent"
android:layout_height="32dp"
android:layout_margin="16dp"
app:animateExpansion="false"
app:chunkWidth="3dp"
app:chunkHeight="24dp"
app:minChunkHeight="2dp"
Expand Down

0 comments on commit 9e35f03

Please sign in to comment.