Example usage for Java android.support.v4.media RatingCompat fields, constructors, methods, implement or subclass
The text is from its open source code.
int | RATING_NONE Indicates a rating style is not supported. |
int | RATING_HEART A rating style with a single degree of rating, "heart" vs "no heart". |
int | RATING_THUMB_UP_DOWN A rating style for "thumb up" vs "thumb down". |
int | RATING_3_STARS A rating style with 0 to 3 stars. |
int | RATING_4_STARS A rating style with 0 to 4 stars. |
int | RATING_5_STARS A rating style with 0 to 5 stars. |
int | RATING_PERCENTAGE A rating style expressed as a percentage. |
float | getPercentRating() Return the percentage-based rating value. |
int | getRatingStyle() Return the rating style. |
float | getStarRating() Return the star-based rating value. |
boolean | hasHeart() Return whether the rating is "heart selected". |
boolean | isRated() Return whether there is a rating value available. |
boolean | isThumbUp() Return whether the rating is "thumb up". |
RatingCompat | newHeartRating(boolean hasHeart) Return a Rating instance with a heart-based rating. |
RatingCompat | newPercentageRating(float percent) Return a Rating instance with a percentage-based rating. |
RatingCompat | newStarRating(@StarStyle int starRatingStyle, float starRating) Return a Rating instance with a star-based rating. |
RatingCompat | newThumbRating(boolean thumbIsUp) Return a Rating instance with a thumb-based rating. |
RatingCompat | newUnratedRating(@Style int ratingStyle) Return a Rating instance with no rating. |