Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
williamyyu committed Dec 14, 2019
1 parent c6ae251 commit a598c7d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
# SimpleRatingBar
[![JitPack](https://jitpack.io/v/ome450901/SimpleRatingBar.svg)](https://jitpack.io/#ome450901/SimpleRatingBar)

>This is a very simple RatingBar library, which you can just simply extend BaseRatingBar to implement your own animation RatingBar in a few steps!
>The simplest RatingBar library, create your own animate RatingBar in a few steps!
Current we already have three RatingBars :
Provide three RatingBars at the moment:
- BaseRatingBar
A RatingBar without any animation.
- ScaleRatingBar
A RatingBar with progressive and scale animation.
- RotationRatingBar (contributed by [nappannda](https://github.com/nappannda))
A RatingBar with progressive and rotate animation.

## What's Next?
- Release the Kotlin version of the library!
- Feel free to post any suggestions you would like to improve!

## Demo
![](images/demo.gif)
![](images/screenshot.png)
Icon made by [Freepik](http://www.freepik.com/) from www.flaticon.com

## What's New (v1.4.3)
- Add `fromUser` parameter in `onRatingChange`
## What's New (v1.5.0)
- Fixed the match parent issue(start didn't consume the whole width)

## Feature
- Allow half star through click event. (contributed by [ANPez](https://github.com/ANPez))
Expand Down Expand Up @@ -46,7 +50,7 @@ allprojects {
}
dependencies {
compile 'com.github.ome450901:SimpleRatingBar:1.4.3'
compile 'com.github.ome450901:SimpleRatingBar:LATEST_VERSION'
}
```

Expand Down Expand Up @@ -92,7 +96,7 @@ ratingBar.setEmptyDrawableRes(R.drawable.start_empty);
ratingBar.setFilledDrawableRes(R.drawable.start_empty);
ratingBar.setOnRatingChangeListener(new BaseRatingBar.OnRatingChangeListener() {
@Override
public void onRatingChange(BaseRatingBar ratingBar, int rating) {
public void onRatingChange(BaseRatingBar ratingBar, int rating, boolean fromUser) {
Log.e(TAG, "onRatingChange: " + rating);
}
});
Expand Down

0 comments on commit a598c7d

Please sign in to comment.