mirror of
				https://github.com/AdrianKuta/Expandable-RecyclerView.git
				synced 2025-10-31 00:43:39 +01:00 
			
		
		
		
	ExpandableRecyclerViewAdapter v1.0.0
This commit is contained in:
		| @@ -15,7 +15,7 @@ android { | ||||
|         minSdkVersion 23 | ||||
|         targetSdkVersion 29 | ||||
|         versionCode 1 | ||||
|         versionName "0.0.1-beta02" | ||||
|         versionName "1.0.0" | ||||
|  | ||||
|         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | ||||
|         consumerProguardFiles 'consumer-rules.pro' | ||||
|   | ||||
| @@ -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