Open asystat opened 6 years ago
It works for me in version 1.0.8
Your code should look like this:
.threshold(4f)
I think the issue is that the Stars are not buttons, but Rating Bar. Therefore, It depends where you press along the bar and not on which star. It would be better to change it to buttons.
In the mean time, I found that changing the .threshold(4.1f) will give me <=4 on most cases.
Like @tvaknin, it looks like a RatingBar issue. The RatingBar see's the middle point of the star as the threshold, instead of the begin. For example, clicking on the first half of the first star gives you a rating of 1.0. Click on the second half of the first star and you get a rating of 2.0. Weird design.
Whenever I set the threshold via .threshold(4) for example, the threshold remains at 3.