Skip to content

Instantly share code, notes, and snippets.

@AmaroNeto
Created January 23, 2020 19:54
Show Gist options
  • Save AmaroNeto/d4c54d5fa213786ca091821e3fe597a7 to your computer and use it in GitHub Desktop.
Save AmaroNeto/d4c54d5fa213786ca091821e3fe597a7 to your computer and use it in GitHub Desktop.
AdapterObject-3
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) : ViewHolder<ViewDataBinding> {
val bind : ViewDataBinding = DataBindingUtil.bind(LayoutInflater
.from(parent.context)
.inflate(viewType,parent,false))!!
return ViewHolder(bind)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment