mirror of
https://github.com/AdrianKuta/Expandable-RecyclerView.git
synced 2025-04-20 07:29:02 +02:00
Update README.md
This commit is contained in:
parent
d9b1bab168
commit
210d96c616
@ -5,7 +5,9 @@
|
|||||||
[](https://circleci.com/gh/AdrianKuta/Expandable-RecyclerView)
|
[](https://circleci.com/gh/AdrianKuta/Expandable-RecyclerView)
|
||||||
|
|
||||||
With this adapter you can add expand feature to regular RecyclerView.
|
With this adapter you can add expand feature to regular RecyclerView.
|
||||||
|
|
||||||
All objects are store in [Tree (Data structure)](https://github.com/AdrianKuta/Tree-Data-Structure), so adapter can create multilevel expandable groups.
|
All objects are store in [Tree (Data structure)](https://github.com/AdrianKuta/Tree-Data-Structure), so adapter can create multilevel expandable groups.
|
||||||
|
|
||||||
Under the hood, the tree is flattened to simple list, so from RecyclerView's point of view it can operate as usual.
|
Under the hood, the tree is flattened to simple list, so from RecyclerView's point of view it can operate as usual.
|
||||||
|
|
||||||
|
|
||||||
@ -16,8 +18,8 @@ Under the hood, the tree is flattened to simple list, so from RecyclerView's poi
|
|||||||
implementation "com.github.adriankuta:expandable-recyclerView:$latest_versions"
|
implementation "com.github.adriankuta:expandable-recyclerView:$latest_versions"
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
To use expandable adapter we just have to expand our Adapter class with `ExpandableRecyclerViewAdapter<T, VH>`
|
To use expandable adapter we just have to expand our Adapter class with `ExpandableRecyclerViewAdapter<T, VH>`,
|
||||||
Where `T` is data type on which adapter will operate, `VH` is ViewHolder type.
|
where `T` is data type on which adapter will operate, `VH` is ViewHolder type.
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
class ExpandableAdapter: ExpandableRecyclerViewAdapter<String, RecyclerView.ViewHolder>() {
|
class ExpandableAdapter: ExpandableRecyclerViewAdapter<String, RecyclerView.ViewHolder>() {
|
||||||
@ -100,4 +102,5 @@ Full example of this library is available in app module.
|
|||||||
|
|
||||||
Project is still during development and improvements.
|
Project is still during development and improvements.
|
||||||
Issues with BUGs or suggestions are welcome.
|
Issues with BUGs or suggestions are welcome.
|
||||||
|
|
||||||
Also please feel free to fork library and contribute to project! ;-)
|
Also please feel free to fork library and contribute to project! ;-)
|
Loading…
x
Reference in New Issue
Block a user