Setting the minimum stars to a rating bar

939 views Asked by At

I have a rating bar where I want the user to choose from 1 to 5 stars, and I have used the stepSize = "1" which eliminates decimals.

However, the user can still choose 0 star rating, is there a way in xml attributes specifically where I limit the star rating options to 1-5 instead of 0-5?

I have found a similar question here, but the solution is in Java code, where you make an if statement and changing the 0 to 1.

I'm asking if I can limit the option to 1-5 using the xml attributes of the rating bar somehow.

0

There are 0 answers