|
|
@ -19,13 +19,14 @@ import java.util.* |
|
|
|
abstract class CommonRecyclerAdapter<ITEM>(protected val context: Context) : |
|
|
|
abstract class CommonRecyclerAdapter<ITEM>(protected val context: Context) : |
|
|
|
RecyclerView.Adapter<ItemViewHolder>() { |
|
|
|
RecyclerView.Adapter<ItemViewHolder>() { |
|
|
|
|
|
|
|
|
|
|
|
constructor(context: Context, vararg delegates: Pair<Int, ItemViewDelegate<ITEM>>) : this( |
|
|
|
constructor(context: Context, vararg delegates: ItemViewDelegate<ITEM>) : this(context) { |
|
|
|
context |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
addItemViewDelegates(*delegates) |
|
|
|
addItemViewDelegates(*delegates) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
constructor(context: Context, vararg delegates: ItemViewDelegate<ITEM>) : this(context) { |
|
|
|
constructor( |
|
|
|
|
|
|
|
context: Context, |
|
|
|
|
|
|
|
vararg delegates: Pair<Int, ItemViewDelegate<ITEM>> |
|
|
|
|
|
|
|
) : this(context) { |
|
|
|
addItemViewDelegates(*delegates) |
|
|
|
addItemViewDelegates(*delegates) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|