Skip to content

Commit

Permalink
Updated README for v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yarolegovich committed Aug 1, 2020
1 parent a7c7372 commit 3c77896
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ It is similar to a ViewPager, but you can quickly and painlessly create layout,
## Gradle
Add this into your dependencies block.
```
compile 'com.yarolegovich:discrete-scrollview:1.5.0'
compile 'com.yarolegovich:discrete-scrollview:1.5.1'
```

## Reporting an issue
Expand Down Expand Up @@ -129,6 +129,12 @@ int getRealPosition(int position);
int getClosestPosition(int position);
```
Currently `InfiniteScrollAdapter` handles data set changes inefficiently, so your contributions are welcome.
#### Disabling scroll
It's possible to forbid user scroll in any or specific direction using:
```java
scrollView.setScrollConfig(config);
```
Where `config` is an instance of `DSVScrollConfig` enum. The default value enables scroll in any direction.
#### Callbacks
* Scroll state changes:
```java
Expand Down
2 changes: 1 addition & 1 deletion release-bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def upload = [
groupId : 'com.yarolegovich',
uploadName : 'DiscreteScrollView',
description: 'A scrollable list of items that centers the current element and provides easy-to-use APIs for cool item animations.',
version : '1.5.0',
version : '1.5.1',
licences : ['Apache-2.0']
]

Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ dependencies {
implementation deps.glide
implementation deps.materialPrefs

implementation 'com.yarolegovich:discrete-scrollview:1.5.0'
implementation project(':library')
}

0 comments on commit 3c77896

Please sign in to comment.