<DataBinding: How to create Recyclerview with mult...
# stackoverflow
u
DataBinding: How to create Recyclerview with multiple ViewHolder (multiple layout) using generics in Kotlin I have the below code where I'am using generics in the RecyclerView with multiple ViewHolders, I'am trying to upgrade this code using DataBinding, I'am looking for a RecyclerView with multiple ViewHolders and use DataBinding in it. class JumbledWordAdapter( var items: List ) : RecyclerView.Adapter() { companion object { const val TYPE_PLACE_HOLDER = 0 const val TYPE_ANSWER = 1 const val INVALID = -1 } var selectedItemPos = INVALID override fun getItemViewType(position: Int) =...