mirror of
https://github.com/AdrianKuta/Expandable-RecyclerView.git
synced 2025-07-02 15:27:59 +02:00
ExpandableRecyclerViewAdapter v1.0.0
This commit is contained in:
@ -3,7 +3,7 @@ package com.github.adriankuta.expandable_recyclerview
|
||||
import android.view.ViewGroup
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
|
||||
abstract class MultilevelRecyclerViewAdapter<T, VH : RecyclerView.ViewHolder> :
|
||||
abstract class ExpandableRecyclerViewAdapter<T, VH : RecyclerView.ViewHolder> :
|
||||
RecyclerView.Adapter<VH>() {
|
||||
|
||||
private lateinit var treeNodes: ExpandableTreeNode<T>
|
@ -6,7 +6,7 @@ import com.github.adriankuta.datastructure.tree.ChildDeclaration
|
||||
@JvmSynthetic
|
||||
inline fun <reified T> expandableTree(
|
||||
value: T,
|
||||
childDeclaration: ChildDeclaration<T>
|
||||
childDeclaration: ChildDeclaration<T> = {}
|
||||
): ExpandableTreeNode<T> {
|
||||
val treeNode = ExpandableTreeNode(value)
|
||||
treeNode.childDeclaration()
|
||||
|
Reference in New Issue
Block a user