Android Reference
RatingBar.OnRatingBarChangeListener
android.widget
Interface RatingBar.OnRatingBarChangeListener
-
- Enclosing class:
- RatingBar
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
or arrow key/trackball as well as changes that were initiated
programmatically.
-
-
Method Summary
Methods
Modifier and Type |
Method and Description |
void |
onRatingChanged(RatingBar ratingBar,
float rating,
boolean fromUser)
Notification that the rating has changed.
|
-
-
Method Detail
-
onRatingChanged
void onRatingChanged(RatingBar ratingBar,
float rating,
boolean fromUser)
Notification that the rating has changed. Clients can use the
fromUser 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.
- Parameters:
ratingBar
- The RatingBar whose rating has changed.rating
- The current rating. This will be in the range
0..numStars.fromUser
- True if the rating change was initiated by a user's
touch gesture or arrow key/horizontal trackbell movement.
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 89 / 159523965. Delta: 0.04141 с