This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create the Abstract Adapter and the ViewHolder that we need to hold the item view | |
*/ | |
abstract class AbstractAdapter<T : ViewBinding, ITEM> constructor( | |
protected var itemList: List<ITEM>, | |
private val bindingClass: (LayoutInflater, ViewGroup, Boolean) -> T | |
) : RecyclerView.Adapter<AbstractAdapter.Holder>() { | |
var binding: T? = null |