July 2018
Intermediate to advanced
266 pages
7h 11m
English
Here we need to retrieve the article according to the position that we received, and load the text of the views accordingly:
override fun onBindViewHolder(holder: ViewHolder, position: Int) { val article = articles[position] holder.feed.text = article.feed holder.title.text = article.title holder.summary.text = article.summary}
This function will be called initially to display the first group of articles, and later will be called when the user scrolls to replace the content of the articles.
Read now
Unlock full access