Jetpack Compose

Oct 22 2020 · Kotlin 1.4, Android 11, Android Studio 4.2

Part 1: Jetpack Compose Basics

08. Build Common UI Components: Part 2

Episode complete

Play next episode

Next
About this episode
Leave a rating/review
See forum comments
Cinema mode Mark complete Download course materials
Previous episode: 07. Build Common UI Components: Part 1 Next episode: 09. Build Common UI Components: Part 3

Get immediate access to this and 4,000+ other videos and books.

Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and 4,000+ professional videos in a single subscription, it's simply the best investment you can make in your development career.

Learn more Already a subscriber? Sign in.

Notes: 08. Build Common UI Components: Part 2

When building the AddBookReview feature, specifically the RatingBar handler for rating selection, make sure to also add the following line of code to the lambda function: _bookReviewState.value = _bookReviewState.value.copy(rating = newRating).

This will store the data within the ReviewState, to save the rating to the database when you finish adding a review.