All Projects → a914-gowtham → compose-ratingbar

a914-gowtham / compose-ratingbar

Licence: MIT license
A ratingbar composable for jetpack compose 🚀🌟

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to compose-ratingbar

SSJetpackComposeSwipeableView
SSJetpackComposeSwipeableView is a small library which provides support for the swipeable views. You can use this in your lazyColumns or can add a simple view which contains swipe to edit/delete functionality.
Stars: ✭ 57 (-35.96%)
Mutual labels:  jetpack, jetpack-compose, jetpack-components
Compose-Settings
Android #JetpackCompose Settings library
Stars: ✭ 188 (+111.24%)
Mutual labels:  jetpack, jetpack-compose
Delish
Delish, a Food Recipes App in Jetpack Compose and Hilt based on modern Android tech-stacks and MVI clean architecture.
Stars: ✭ 356 (+300%)
Mutual labels:  jetpack, jetpack-compose
Praxis
Example Android project using MVVM, DaggerAndroid, Jetpack Compose, Retrofit, Coroutines and Multi module architecture ✌🏽
Stars: ✭ 258 (+189.89%)
Mutual labels:  jetpack-compose, jetpack-components
podcast-app
Podcast App
Stars: ✭ 291 (+226.97%)
Mutual labels:  android-jetpack, jetpack-compose
android-developer-roadmap
🗺 The 2022 Android Developer Roadmap suggests learning paths to understanding Android development.
Stars: ✭ 5,533 (+6116.85%)
Mutual labels:  jetpack, jetpack-compose
Photos
No description or website provided.
Stars: ✭ 74 (-16.85%)
Mutual labels:  android-jetpack, jetpack-compose
Jetpack-compose-sample
Forget about bunch of XML files for maintaining UIs. Jetpack Compose is Android’s modern toolkit for building native UI. Here is a small example to get started.
Stars: ✭ 29 (-67.42%)
Mutual labels:  jetpack, jetpack-compose
Awesome-Android-Open-Source-Projects
👓 A curated list of awesome android projects by open-source contributors.
Stars: ✭ 401 (+350.56%)
Mutual labels:  jetpack, jetpack-compose
Simple-Notes-Kotlin-App
✍️ Simple Note Making App use mvvm architecture , dagger , coroutines and navigation component. Features includes 🗒️ create , edit and ❌ delete notes
Stars: ✭ 40 (-55.06%)
Mutual labels:  jetpack, android-jetpack
PCard
Demo project to showcase adding payment card details using JetPack Compose
Stars: ✭ 61 (-31.46%)
Mutual labels:  jetpack, jetpack-compose
neon
Provides Jetpack Compose support for different image loading libraries.
Stars: ✭ 13 (-85.39%)
Mutual labels:  jetpack, jetpack-compose
ComposeBird
Flappy Bird game
Stars: ✭ 193 (+116.85%)
Mutual labels:  jetpack, jetpack-compose
Scout
Scout is a kotlin multiplatform application that allows users to search and save games to lists to be browsed later.
Stars: ✭ 28 (-68.54%)
Mutual labels:  jetpack, jetpack-compose
Composecookbook
A Collection on all Jetpack compose UI elements, Layouts, Widgets and Demo screens to see it's potential
Stars: ✭ 3,516 (+3850.56%)
Mutual labels:  jetpack, jetpack-compose
Strict-DataBinding
善用 DataBinding 彻底解决 “View 实例的 Null 安全一致性问题”
Stars: ✭ 84 (-5.62%)
Mutual labels:  jetpack, jetpack-compose
Coffeegram
Android app using Jetpack Compose together with StateFlow and MVI
Stars: ✭ 155 (+74.16%)
Mutual labels:  jetpack, jetpack-compose
compose-charts
Simple Jetpack Compose Charts for multi-platform. Including Android, Web, Desktop.
Stars: ✭ 30 (-66.29%)
Mutual labels:  jetpack, jetpack-compose
AndroidOpenSourceDemo
Android 主流开源库是如何实现的呢?来自己动手实现一个
Stars: ✭ 40 (-55.06%)
Mutual labels:  android-jetpack, jetpack-compose
Wiggles
🐶 Beautiful Puppy adoption app with Jetpack Compose #AndroidDevChallenge
Stars: ✭ 365 (+310.11%)
Mutual labels:  jetpack, jetpack-compose

Compose-Ratingbar

A ratingbar for jetpack compose

Maven Central

Download

Add in project build.gradle:

repositories {
    maven { url 'https://jitpack.io' }
}

// App build.gradle
dependencies {
   implementation 'com.github.a914-gowtham:compose-ratingbar:1.2.3'
  //mavenCentral
  // implementation 'io.github.a914-gowtham:compose-ratingbar:1.2.3'

}

Usage

   import androidx.compose.runtime.*

   var rating: Float by remember { mutableStateOf(initialRating) }

   RatingBar(
       value = rating,
       config = RatingBarConfig()
           .style(RatingBarStyle.HighLighted),
       onValueChange = {
           rating = it
       },
       onRatingChanged = {
           Log.d("TAG", "onRatingChanged: $it")
       }
   )

Ratingbar composable can be customized using RatingBarConfig class as shown below:

        RatingBarConfig()
                .activeColor(Color.Yellow)
                .hideInactiveStars(true)
                .inactiveColor(Color.LightGray)
                .inactiveBorderColor(Color.Blue)
                .stepSize(StepSize.HALF)
                .numStars(10)
                .isIndicator(true)
                .size(24.dp)
                .padding(6.dp)
                .style(RatingBarStyle.HighLighted)

Library Info

  • Current version of the library only supports Stepsize 1f and 0.5f when click or drag. However, Initial Rating value could be any float value like 3.8 etc.

Show some and support

Give a ⭐️ if this project helped you!

Buy Me A Coffee
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].