Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rovkinmax committed Feb 18, 2015
1 parent 9960d24 commit 9405d20
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ParalaxRecyclerAdapter
# easyrecycler
provide fading action bar with recyclerview

![alt text](https://api.monosnap.com/rpc/file/download?id=8ghh7zA5Nzuj0lGwkoEvEcI3pOZ9o8)
Expand All @@ -11,7 +11,25 @@ dependencies {
}
````
#####Use ParallaxRecyclerAdapter
[see example][1]
[1]:https://github.com/rovkinmax/easyrecycler/blob/master/app/src/main/java/pro/useit/paralaxrecycleradapter/ExampleAdapter.java
#####Use SpacesItemDecoration
similar spacing between the elements even in the grid
```java
int spanCount = 3;
int deviderWidth = 10;
final SpacesItemDecoration itemDecoration = new SpacesItemDecoration(deviderWidth, spanCount);
itemDecoration.setIgnoreFirst(adapter.isEnableHeader());
recyclerView.addItemDecoration(itemDecoration);
````
#####Use GridLayoutManager with header
```java
ParallaxRecyclerAdapter adapter = //some implements of ParallaxRecyclerAdapter
HeaderGridLayoutManager layoutManager = new HeaderGridLayoutManager(adapter, spanCount, HeaderGridLayoutManager.VERTICAL, false);
recyclerView.setLayoutManager(layoutManager);
````
License
-----
Copyright (c) 2015 Rovkin Max
Expand Down

0 comments on commit 9405d20

Please sign in to comment.