You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case, I created a BindingViewHolder which has ViewDataBinding of generic T type instead of ViewHolder classes such as HeaderViewHolder, ItemViewHolder and etc.
class BindingViewHolder<T: ViewDataBinding>
constructor(val binding: T): RecyclerView.ViewHolder(binding.root)
You can create BindingViewHolder on onCreateViewHolder method.
How to binding a RecycleView.Adataper
How to use in RecycleView
The text was updated successfully, but these errors were encountered: