Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Update to 0.2
  • Loading branch information
rubensousa authored Sep 25, 2016
1 parent 59d8232 commit a19201d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ RecyclerView snapping example with SnapHelper

## How to

If you need snapping support to start, top, end or bottom, use [GravitySnapHelper](https://github.com/rubensousa/RecyclerViewSnap/blob/master/app/src/main/java/com/github/rubensousa/recyclerviewsnap/GravitySnapHelper.java).
If you need snapping support to start, top, end or bottom, use GravitySnapHelper.

Add this to your build.gradle:

```groovy
compile 'com.github.rubensousa:gravitysnaphelper:0.1'
compile 'com.github.rubensousa:gravitysnaphelper:0.2'
```

Otherwise, center snapping is done with LinearSnapHelper (part of the recyclerview-v7 package).
Expand All @@ -32,7 +32,6 @@ startRecyclerView.setLayoutManager(new LinearLayoutManager(this,
SnapHelper snapHelperStart = new GravitySnapHelper(Gravity.START);
snapHelperStart.attachToRecyclerView(startRecyclerView);
```
**NOTICE:** There's a serious issue with horizontal snapping in RTL layouts (see https://github.com/rubensousa/RecyclerViewSnap/issues/1). If you currently support RTL, consider waiting for a next release.

### Snapping top with GravitySnapHelper:

Expand Down

0 comments on commit a19201d

Please sign in to comment.