Site icon AppTractor

Compose Ratingbar: форма оценки

Compose Ratingbar — настраиваемая форма с оценками на Jetpack Compose.

Пример использования:

   import androidx.compose.runtime.*

   var rating: Float by remember { mutableStateOf(initialRating) }
    
   RatingBar(value = rating,
            ratingBarStyle = RatingBarStyle.HighLighted, onValueChange = {
            rating = it
        }) {
            Log.d("TAG", "onRatingChanged: $it")
   }

Библиотека на GitHub: https://github.com/a914-gowtham/compose-ratingbar
Платформа: Android
⭐️: 38

Exit mobile version