Lines Matching refs:rating

30  * A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in
31 * stars. The user can touch/drag or use arrow keys to set the rating when using
55 * A callback that notifies clients when the rating has been changed. This
63 * Notification that the rating has changed. Clients can use the
66 * while the user is dragging, only when the user finalizes a rating by
69 * @param ratingBar The RatingBar whose rating has changed.
70 * @param rating The current rating. This will be in the range
72 * @param fromUser True if the rating change was initiated by a user's
75 void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser);
92 final float rating = a.getFloat(R.styleable.RatingBar_rating, -1);
106 if (rating >= 0) {
107 setRating(rating);
124 * Sets the listener to be called when the rating changes.
133 * @return The listener (may be null) that is listening for rating change
141 * Whether this rating bar should only be an indicator (thus non-changeable
154 * @return Whether this rating bar is only an indicator.
189 * Sets the rating (the number of stars filled).
191 * @param rating The rating to set.
193 public void setRating(float rating) {
194 setProgress(Math.round(rating * getProgressPerStar()));
198 * Gets the current rating (number of stars filled).
200 * @return The current rating.
207 * Sets the step size (granularity) of this rating bar.
209 * @param stepSize The step size of this rating bar. For example, if
224 * Gets the step size of this rating bar.
257 // Callback for non-user rating changes