Skip to content

Commit

Permalink
Added docs for the accordion mode for issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
grennis committed Mar 2, 2016
1 parent 3b4c2a1 commit 2487da6
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 @@ -19,7 +19,7 @@ Then add this to your build.gradle dependencies for the project where you want t

dependencies {
...
compile 'com.github.grennis:ExpandableRecyclerView:0.9.1'
compile 'com.github.grennis:ExpandableRecyclerView:0.9.2'
}

# Usage
Expand All @@ -41,5 +41,9 @@ Define your items that derive from ExpandableRecyclerAdapter.ListItem

Use the `TYPE_HEADER` for the expandable header items. Define other types as needed for your application.

You can set a mode to collapse other items when an item is opened:

adapter.setMode(ExpandableRecyclerAdapter.MODE_ACCORDION);

For more information, browse the [Sample App](https://github.com/grennis/ExpandableRecyclerView/tree/master/app/src/main/java/com/innodroid/expandablerecyclerdemo).

0 comments on commit 2487da6

Please sign in to comment.