Build 1.0_r1(from source)

Interface RatingBar.OnRatingBarChangeListener

Enclosing class:

public static interface RatingBar.OnRatingBarChangeListener

A callback that notifies clients when the rating has been changed. This includes changes that were initiated by the user through a touch gesture as well as changes that were initiated programmatically.

Method Summary
 void onRatingChanged(RatingBar ratingBar, float rating, boolean fromTouch)
          Notification that the rating has changed.

Method Detail


void onRatingChanged(RatingBar ratingBar,
                     float rating,
                     boolean fromTouch)
Notification that the rating has changed. Clients can use the fromTouch parameter to distinguish user-initiated changes from those that occurred programmatically. This will not be called continuously while the user is dragging, only when the user finalizes a rating by lifting the touch.

ratingBar - The RatingBar whose rating has changed.
rating - The current rating. This will be in the range 0..numStars.
fromTouch - True if the rating change was initiated by a user's touch gesture.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature