Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8646f5d

Browse files
authoredOct 4, 2018
Update README.md
1 parent 991e891 commit 8646f5d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Remember, you can data-bind on these collections too if you wrap them into Obser
4444
```java
4545
public void setItems( final ObservableField< ? extends Collection > items )
4646
```
47+
Or you can use setItemsIntRange( int fromInclusive, int toInclusive ) to set int ranges more easily.
4748
* A Collection of integers can have arbitrary values and it's not limited to only a range of positives as with NumberPicker. No more conversion to strings and giving up of easy handling of int values is necessary.
4849
* No setMinValue and setMaxValue call is necessary. Just set your Collection.
4950
* Uses AutoResizeTextView so texts that would otherwise be too long are also displayed in a decent way.
@@ -52,6 +53,9 @@ Remember, you can data-bind on these collections too if you wrap them into Obser
5253
* You can't have the items displayed in a loop (like as with wrapSelectorWheel in NumberPicker).
5354
* The user can't edit the items from the UI.
5455

56+
## Error handling
57+
Be careful when using setValue or setting a data-binded value variable because if it's invalid ScrollPicker throws a RuntimeException.
58+
5559
## [JavaDoc page](https://tomeees.github.io/)
5660

5761
## Download
@@ -74,7 +78,7 @@ repositories {
7478
...
7579
7680
dependencies {
77-
implementation "com.github.tomeees:scrollpicker:1.6.3"
81+
implementation "com.github.tomeees:scrollpicker:1.7.0"
7882
...
7983
}
8084
```

0 commit comments

Comments
 (0)
Please sign in to comment.