StarRater
class StarRater(max: Int = 5, displayRounded: Float = 0.0f, pathMetrics: PathMetrics? = null) : View(source)
Creates a control that shows a star rating.
Author
Nicholas Eddy
Parameters
max
value the rating can have
displayRounded
rounds the displayed value to the nearest decimal. 0
means no rounding, 0.5
rounds to the nearest half.
pathMetrics
that helps get a more accurate size of the stars when their tips are rounded
Properties
Link copied to clipboard
Link copied to clipboard
Determines how long the star arms are relative to the central part. 0
makes a really pointy star, while 1
gets closer to a circle.
Link copied to clipboard
Minimum spacing between the stars.
Link copied to clipboard
Number of points for each star.
Link copied to clipboard
Color of the shadow shown behind the stars.
Link copied to clipboard
Determines how pointy the star arms are. A value of 0
means no rounding. While 1
means fully rounded
Link copied to clipboard
Rotation angle of stars.
Inherited properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Inherited functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard