Java android.support.v4.media RatingCompat fields, constructors, methods, implement or subclass

Example usage for Java android.support.v4.media RatingCompat fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.support.v4.media RatingCompat.

The text is from its open source code.

Field

intRATING_NONE
Indicates a rating style is not supported.
intRATING_HEART
A rating style with a single degree of rating, "heart" vs "no heart".
intRATING_THUMB_UP_DOWN
A rating style for "thumb up" vs "thumb down".
intRATING_3_STARS
A rating style with 0 to 3 stars.
intRATING_4_STARS
A rating style with 0 to 4 stars.
intRATING_5_STARS
A rating style with 0 to 5 stars.
intRATING_PERCENTAGE
A rating style expressed as a percentage.

Method

floatgetPercentRating()
Return the percentage-based rating value.
intgetRatingStyle()
Return the rating style.
floatgetStarRating()
Return the star-based rating value.
booleanhasHeart()
Return whether the rating is "heart selected".
booleanisRated()
Return whether there is a rating value available.
booleanisThumbUp()
Return whether the rating is "thumb up".
RatingCompatnewHeartRating(boolean hasHeart)
Return a Rating instance with a heart-based rating.
RatingCompatnewPercentageRating(float percent)
Return a Rating instance with a percentage-based rating.
RatingCompatnewStarRating(@StarStyle int starRatingStyle, float starRating)
Return a Rating instance with a star-based rating.
RatingCompatnewThumbRating(boolean thumbIsUp)
Return a Rating instance with a thumb-based rating.
RatingCompatnewUnratedRating(@Style int ratingStyle)
Return a Rating instance with no rating.