Skip to content

Instantly share code, notes, and snippets.

@MagicalMeghan
Created September 16, 2020 19:04
Show Gist options
  • Save MagicalMeghan/25438136d564168cefd328d90bd1bcf8 to your computer and use it in GitHub Desktop.
Save MagicalMeghan/25438136d564168cefd328d90bd1bcf8 to your computer and use it in GitHub Desktop.
<!-- Copyright 2019 Google LLC.
SPDX-License-Identifier: Apache-2.0 -->
class FlowerViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView){
private val flowerTextView:TextView = itemView.findViewById(R.id.flower_text)
fun bind(word: String){
flowerTextView.text = word
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment