RatingView icon indicating copy to clipboard operation
RatingView copied to clipboard

Step Size not provided

Open Debjyotinath opened this issue 9 years ago • 6 comments

Hi, Very good stuff, it really helps my need. But the only problem is when my is_indicator is false i can increase the rating by one star only, and not even by half star.

Debjyotinath avatar Jul 12 '16 08:07 Debjyotinath

@Debjyotinath there is not any possibility for user to set half star rating, only from 1 to max_count obviously. And I don't get the problem clearly. Do you mean when you interact with the view you can't change rating from 1 star to 4 for example?

Ornolfr avatar Jul 12 '16 09:07 Ornolfr

Yes, when i interact with the rating i can increment my rating +1 i.e 1 to 2 to 3 and so on. But i cannot increment by 0.5 i.e 1 to 1.5 to 2 to 2.5. However a half star drawable is there, so my guess was i should be able to increment by 0.5.

Debjyotinath avatar Jul 12 '16 09:07 Debjyotinath

@Debjyotinath The main thing is this line: setRating(Math.round(event.getX() / getWidth() * mMaxCount + 0.5)); There cannot be any limitations with already starred drawables. It just checks the place where you clicked, compares it with view's width and sets the rating dependent on max_count. The only problem there might be if you set padding to the view, it's not supported due to realization difficulty.

Ornolfr avatar Jul 12 '16 09:07 Ornolfr

I downloaded your project and executed it without any change.I was not able to do it in that.

Debjyotinath avatar Jul 12 '16 10:07 Debjyotinath

您的邮件已经收到,我会尽快回复,谢谢!

dwqs avatar Jan 28 '24 05:01 dwqs