Created
August 13, 2024 10:27
-
-
Save anitaa1990/14d1fe8301200f4ab6dc555deda56990 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
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