Skip to content

Instantly share code, notes, and snippets.

@okanaydin
Created December 12, 2020 16:14
Show Gist options
  • Save okanaydin/b8709b30fc188ad1948e744ccb61235f to your computer and use it in GitHub Desktop.
Save okanaydin/b8709b30fc188ad1948e744ccb61235f to your computer and use it in GitHub Desktop.
UserDetailViewHolder
inner class UserDetailViewHolder(val binding: ViewUserDetailBinding)
:RecyclerView.ViewHolder(binding.root) {
fun bind(userDetail: UserDetail) {
binding.textviewUserName = userDetail.name
binding.textviewUserAge = userDetail.age
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment