Created
August 16, 2020 14:56
-
-
Save manoj-mili/c3745d50e590a3c1c9ab8109c62b4644 to your computer and use it in GitHub Desktop.
BindViewHolder implementation
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) { | |
//to access data from list we have getItem(position) and no need to implement | |
val task = getItem(position) | |
holder.tvDesc.text = task.body | |
holder.tvTitle.text = task.title | |
} | |
//Also no need to implement getItemCount() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment