Skip to content

Commit 3c77896

Browse files
committed
Updated README for v1.5.1
1 parent a7c7372 commit 3c77896

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ It is similar to a ViewPager, but you can quickly and painlessly create layout,
88
## Gradle
99
Add this into your dependencies block.
1010
```
11-
compile 'com.yarolegovich:discrete-scrollview:1.5.0'
11+
compile 'com.yarolegovich:discrete-scrollview:1.5.1'
1212
```
1313

1414
## Reporting an issue
@@ -129,6 +129,12 @@ int getRealPosition(int position);
129129
int getClosestPosition(int position);
130130
```
131131
Currently `InfiniteScrollAdapter` handles data set changes inefficiently, so your contributions are welcome.
132+
#### Disabling scroll
133+
It's possible to forbid user scroll in any or specific direction using:
134+
```java
135+
scrollView.setScrollConfig(config);
136+
```
137+
Where `config` is an instance of `DSVScrollConfig` enum. The default value enables scroll in any direction.
132138
#### Callbacks
133139
* Scroll state changes:
134140
```java

release-bintray.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def upload = [
99
groupId : 'com.yarolegovich',
1010
uploadName : 'DiscreteScrollView',
1111
description: 'A scrollable list of items that centers the current element and provides easy-to-use APIs for cool item animations.',
12-
version : '1.5.0',
12+
version : '1.5.1',
1313
licences : ['Apache-2.0']
1414
]
1515

sample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ dependencies {
2626
implementation deps.glide
2727
implementation deps.materialPrefs
2828

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

0 commit comments

Comments
 (0)