techery / ProperRatingBar

Inspired by stock android RatingBar. Simpler, has features that original lacks.
409 stars 70 forks source link

Set rating as float not just int #16

Open baneizalfe opened 8 years ago

baneizalfe commented 8 years ago

Any plans making this feature?

Den-Rimus commented 8 years ago

Sorry for being unresponsive for a long time.

How do you see showing the rating then? e.g. 3.5 rating would be shown as... what? 3 full stars and one filled for a half only?

Den-Rimus commented 8 years ago

Currently there is no simple way to add this functionality. ProperRatingBar is a stupid horizontal LinearLayout that adds tick as many times as corresponding int field says.

There is an idea to process float instead of int by messing with the last tick's drawing - e.g. if rating is 3.75 - draw only rectangle with 75% width of the whole tick.

However, we do not need such element [so far] in our project where ProperRatingBar was implemented in the first place - and there is really not an ounce of a spare time to deal with this as a matter of supporting library. So - PRs are welcome.