Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeeeS authored Oct 4, 2018
1 parent 991e891 commit 8646f5d
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 @@ -44,6 +44,7 @@ Remember, you can data-bind on these collections too if you wrap them into Obser
```java
public void setItems( final ObservableField< ? extends Collection > items )
```
Or you can use setItemsIntRange( int fromInclusive, int toInclusive ) to set int ranges more easily.
* 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.
* No setMinValue and setMaxValue call is necessary. Just set your Collection.
* Uses AutoResizeTextView so texts that would otherwise be too long are also displayed in a decent way.
Expand All @@ -52,6 +53,9 @@ Remember, you can data-bind on these collections too if you wrap them into Obser
* You can't have the items displayed in a loop (like as with wrapSelectorWheel in NumberPicker).
* The user can't edit the items from the UI.

## Error handling
Be careful when using setValue or setting a data-binded value variable because if it's invalid ScrollPicker throws a RuntimeException.

## [JavaDoc page](https://tomeees.github.io/)

## Download
Expand All @@ -74,7 +78,7 @@ repositories {
...
dependencies {
implementation "com.github.tomeees:scrollpicker:1.6.3"
implementation "com.github.tomeees:scrollpicker:1.7.0"
...
}
```
Expand Down

0 comments on commit 8646f5d

Please sign in to comment.