Created
January 25, 2020 00:45
-
-
Save danielmalone/1eaffcff4cdfc3fab9f4b261221c6e76 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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