public static interface Rating.RatingChangedListener
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onProgressChanged(Rating rating,
int progress,
boolean fromUser) |
Notifies change events of a rating.
|
void |
onStartTrackingTouch(Rating rating) |
Notifies start touch events of a rating.
|
void |
onStopTrackingTouch(Rating rating) |
Notifies stop touch events of a rating.
|
void onProgressChanged(Rating rating, int progress, boolean fromUser)
This method notifies the change of the number of rating items displayed on the rating.
rating - Indicates the rating to listen for.progress - Indicates the progress value to set.fromUser - Indicates whether the change is made by users.
The value is true if the change is made by users;
the value is false otherwise.void onStartTrackingTouch(Rating rating)
This method notifies start touch events of a rating.
Rating will call back this method to respond to the start touch events.
rating - Indicates the rating to listen for.void onStopTrackingTouch(Rating rating)
This method is called to respond to the stop touch events.
rating - Indicates the rating to listen for.