Skip to content

If we click between the two stars, both star will get clicked #75

@shubham696

Description

@shubham696

WhatsApp Image 2020-12-28 at 12 53 37 PM

When i click between 2 & 3 star (highlighted by blue color), both are getting selected

XML code:-
<me.zhanghai.android.materialratingbar.MaterialRatingBar
android:id="@+id/feedbackRatingBar"
style="@style/customRatingBar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:indeterminateTint="#FFCB07"
android:numStars="3"
android:progressTint="#FFCB07"
android:secondaryProgressTint="#00000000"
android:stepSize="0.01" />

Code:
feedbackRatingBar?.setOnRatingBarChangeListener { _, rating, fromUser ->
if(fromUser){
feedbackRatingBar?.rating = ceil(rating)
}
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions