AndRatingBar
A RatingBar library for android, you can customize size, spacing, color and image easily, and support right to left.
Customize Size
Customize Spacing
Customize Color & Image
Right to Left Support
In RecyclerView
Implementation
Usage
In your layout file:
Event Listener:
Configuration
AndRatingBar Inherit from Android RatingBar,so all the configuration of RatingBar can be
configured to AndRatingBar,for example:
android:rating="1"
set the rating of RatingBarandroid:numStars="8"
set the number of starandroid:layout_height="36dp"
set the size of starandroid:stepSize="0.5"
set the step size of RatingBarandroid:isIndicator="true"
set if as indicator
AndRatingBar has it's own configuration as follows:
app:starDrawable=""
set the drawable of starapp:bgDrawable=""
set the background drawable of starapp:starColor=""
set the color of starapp:subStarColor=""
set the subColor of starapp:bgColor=""
set the background color of starapp:keepOriginColor=""
set if keep the origin color of star drawableapp:starSpacing="4dp"
set the spacing of the starapp:scaleFactor="1.2"
the sacle factor of the ratingbar which can change the spacing of the star- app:right2Left="true" right to left support