Skip to content

Instantly share code, notes, and snippets.

@danielmalone
Created January 25, 2020 00:45
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 danielmalone/1eaffcff4cdfc3fab9f4b261221c6e76 to your computer and use it in GitHub Desktop.
Save danielmalone/1eaffcff4cdfc3fab9f4b261221c6e76 to your computer and use it in GitHub Desktop.
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
holder.bind(getItem(position))
}
class ViewHolder(view: View) : RecyclerView.ViewHolder(view) {
fun bind(invoice: Invoice) {
itemView.invoiceTitle.text = invoice.title
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment