Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitry Ivanov committed Mar 10, 2017
1 parent 378b478 commit a55098c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

All GIFs here are taken from `sample` application module.

![colorful_sample](art/scrollable_colorful.gif) ![custom_overscroll_sample](art/scrollable_custom_overscroll.gif) ![dialog_sample](art/scrollable_dialog.dif)

<sup>*Serving suggestion</sup>

## Installation
```groovy
Expand Down Expand Up @@ -257,3 +260,22 @@ scrollableLayout.animateScroll(0)
```

Please note that `ScrollableLayout` caches returned `ValueAnimator` and reuses it. First of all because it doesn't make sense to have two different scrolling animations on one `ScrollableLayout`. So, it's advisable to clear all possible custom state before running animation (just like `View` handles `ViewPropertyAnimator`)


## License

```
Copyright 2015 Dimitry Ivanov (mail@dimitryivanov.ru)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```

0 comments on commit a55098c

Please sign in to comment.