smart-app-rate icon indicating copy to clipboard operation
smart-app-rate copied to clipboard

threshold doesn't work

Open asystat opened this issue 6 years ago • 3 comments

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

asystat avatar Apr 12 '18 17:04 asystat

It works for me in version 1.0.8

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

0xPixelfrost avatar Apr 30 '18 16:04 0xPixelfrost

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.

tvaknin avatar Feb 22 '20 09:02 tvaknin

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.

OrhanTozan avatar Mar 30 '21 10:03 OrhanTozan