Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

threshold doesn't work #39

Open
asystat opened this issue Apr 12, 2018 · 3 comments
Open

threshold doesn't work #39

asystat opened this issue Apr 12, 2018 · 3 comments

Comments

@asystat
Copy link

asystat commented Apr 12, 2018

Whenever I set the threshold via .threshold(4) for example, the threshold remains at 3.

@0xPixelfrost
Copy link

It works for me in version 1.0.8

Your code should look like this:
.threshold(4f)

@tvaknin
Copy link

tvaknin commented Feb 22, 2020

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.

@OrhanTozan
Copy link

OrhanTozan commented Mar 30, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants