Skip to content

Instantly share code, notes, and snippets.

@anitaa1990
Created August 13, 2024 10:27
Show Gist options
  • Save anitaa1990/14d1fe8301200f4ab6dc555deda56990 to your computer and use it in GitHub Desktop.
Save anitaa1990/14d1fe8301200f4ab6dc555deda56990 to your computer and use it in GitHub Desktop.
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val movie = movies[position]
holder.title.text = movie.title
holder.rating.text = movie.rating
// all the logic is moved into util class...now is clean!
holder.authors.text = AppUtils.getGenres(movie)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment