Skip to content

Latest commit

 

History

History

rating-bar

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

ratingBarVersion = 1.1.0 License

Rating Bar

RatingBarView is alternative implementation of RatingBar on Android.

Installation

  • To implement RatingBar to your Android project via Gradle, you need to add JitPack repository to your root build.gradle.
allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}
  • After adding JitPack repository, you can add RatingBar dependency to your app level build.gradle.
dependencies {
    implementation "com.github.Trendyol.android-ui-components:rating-bar:$ratingBarVersion"
}

Usage

To set width you can use android:layout_width attribute. To customize more you can use following attributes directly from your layout xml file, or call the functions programmatically.

Attribute Method Description Default Value
app:starCount setStarCount(Int) Rating over 5 0
app:starDefaultColor setDefaultStarColor(Color) color of star #e6e6e6
app:starHighlightColor setHighlightColor(Color) color of highlighted color #ffc000

Contributors

This library is maintained mainly by Trendyol Android Team members but also other Android lovers contributes.

We would like to specially thanks to following contributors;

License

Copyright 2022 Trendyol.com

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.