williamyyu / SimpleRatingBar

A simple RatingBar that you can easier to customize image and animations
MIT License
1.37k stars 152 forks source link

Not able to disable change rating #81

Closed ankathiriya closed 4 years ago

ankathiriya commented 4 years ago

I have set this layout : <com.willy.ratingbar.ScaleRatingBar android:id="@+id/ratingBar" android:layout_width="wrap_content" android:layout_height="wrap_content" app:srb_clearRatingEnabled="false" app:srb_clickable="false" app:srb_drawableEmpty="@drawable/ic_star_empty" app:srb_drawableFilled="@drawable/ic_star_fill" app:srb_isIndicator="false" app:srb_minimumStars="0" app:srb_numStars="5" app:srb_rating="0" app:srb_scrollable="true" app:srb_starHeight="20dp" app:srb_starPadding="0dp" app:srb_starWidth="20dp" />

but then also i can change rating

williamyyu commented 4 years ago

@ankathiriya hello, you need to set the "app:srb_isIndicator" to true.