diff --git a/README.md b/README.md index d2be8ea..aab022e 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,12 @@ Current we already have three RatingBars : ![](images/screenshot.png) Icon made by [Freepik](http://www.freepik.com/) from www.flaticon.com -## What's New (v1.3.4) -- Fix AnimationRatingBar out of sync bug. +## What's New (v1.3.5) +- Rename the attributes for more easily know all this library's attributes. +    (`app:rating="2"` change to `app:srb_rating="2"`) - Implement IsIndicator, Scrollable and Clickable settings. +- Fix Handler null pointer bug. +- Fix AnimationRatingBar out of sync bug. ## Feature - Allow half star through click event. (contributed by [ANPez](https://github.com/ANPez)) @@ -48,7 +51,7 @@ allprojects { } dependencies { - compile 'com.github.ome450901:SimpleRatingBar:1.3.4' + compile 'com.github.ome450901:SimpleRatingBar:1.3.5' } ``` @@ -56,22 +59,22 @@ dependencies { ### In Xml ```xml + app:srb_numStars="3" + app:srb_rating="2" + app:srb_starWidth="30dp" + app:srb_starHeight="30dp" + app:srb_starPadding="15dp" + app:srb_stepSize="0.5" + app:srb_isIndicator="false" + app:srb_clickable="true" + app:srb_scrollable="true" + app:srb_clearRatingEnabled="true" + app:srb_drawableEmpty="@drawable/start_empty" + app:srb_drawableFilled="@drawable/star_filled"> ``` diff --git a/example/src/main/res/layout/fragment_demo.xml b/example/src/main/res/layout/fragment_demo.xml index e827739..e80669d 100644 --- a/example/src/main/res/layout/fragment_demo.xml +++ b/example/src/main/res/layout/fragment_demo.xml @@ -1,12 +1,9 @@ + android:layout_height="match_parent"> + app:srb_numStars="7" + app:srb_rating="2.5" + app:srb_starPadding="5dp" /> + app:srb_starPadding="10dp" + app:srb_rating="4" + app:srb_stepSize="0.5" /> - - - - - - - - - - - - - + + + + + + + + + + + + + \ No newline at end of file