Skip to content

Instantly share code, notes, and snippets.

@Marchuck
Created June 14, 2018 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Marchuck/85c93dddacc93ca635db0e741bb5cb33 to your computer and use it in GitHub Desktop.
Save Marchuck/85c93dddacc93ca635db0e741bb5cb33 to your computer and use it in GitHub Desktop.
class SwapiPersonViewHolder(private val binding: ItemSwapiPersonBinding) : RecyclerView.ViewHolder(binding.root) {
fun bind(item: Person?) {
binding.personModel = SwapiPersonViewModel(item)
binding.executePendingBindings()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment