Created
May 11, 2018 02:48
-
-
Save jungilhan/7ab43092c0a09e362a2d4772487fe661 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
class NumberViewHolder(parentView: View) : RecyclerView.ViewHolder( | |
LayoutInflater.from(parentView.context).inflate(R.layout.card_item, null, false)) { | |
private val numberView = itemView.findViewById<TextView>(R.id.number) | |
fun bindTo(position: Int) { | |
numberView.text = "# $position" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment