Skip to content

Instantly share code, notes, and snippets.

@enginebai
Created January 9, 2022 09:56
Show Gist options
  • Save enginebai/6f38510de09c6dd93275c388cf431bfc to your computer and use it in GitHub Desktop.
Save enginebai/6f38510de09c6dd93275c388cf431bfc to your computer and use it in GitHub Desktop.
fun bindData(movie: MovieDetail) {
val textMovieName = findViewById(R.id.textMovieName)
textMovieName.text = movie.name
val ratingBar = findViewById(R.id.movieRatingBar)
ratingBar.rating = movie.rating
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment