https://github.com/ml-opensource/ratingbar
A customizable rating bar
https://github.com/ml-opensource/ratingbar
Last synced: 4 months ago
JSON representation
A customizable rating bar
- Host: GitHub
- URL: https://github.com/ml-opensource/ratingbar
- Owner: ml-opensource
- License: mit
- Created: 2016-07-07T20:51:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-05-24T09:08:28.000Z (over 5 years ago)
- Last Synced: 2025-04-03T01:41:31.921Z (11 months ago)
- Language: Java
- Size: 253 KB
- Stars: 23
- Watchers: 19
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RatingBar [](https://fuzz-opensource.herokuapp.com/)
=========================

A lightweight RatingBar widget that makes it easier to customize the look of the children ratings views, compared to the default RatingBar.
**NOTE: This currently only allows use of stock RatingBar functions but not underlying AbsSeekBar functions.**
**NOTE2: Min SDK allowed is SDK 14. This restriction is defined by the Androidx AppCompat library.**
Usage
-----
**Gradle:**
```xml
maven { url "https://www.jitpack.io" }
```
Add to dependencies
```
compile 'com.github.fuzz-productions:RatingBar:1.0.6'
```
- Include the selected state drawable `icn_rating_start_green` in your project.
- Include the unselected state drawable `icn_rating_start_grey` in your project.
- Include in layout:
```xml
```
Customizations
--------------
Set the height and width of the stars with `setStarSizeInDp(int dp)`. Omitting this method call will result in the use of
default 30dp value.
Change the number of stars to choose from with `setMax(int count)` corresponds to .
Change the minimum stars allowed to be selected `setMinimumSelectionAllowed(int minCount)`