Skip to content

Instantly share code, notes, and snippets.

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