public static interface WheelPicker.OnWheelChangeListener
| Modifier and Type | Method and Description |
|---|---|
void |
onWheelScrolled(int offset)
Invoke when WheelPicker scroll stopped
WheelPicker will return a distance offset which between current scroll position and
initial position, this offset is a positive or a negative, positive means WheelPicker is
scrolling from bottom to top, negative means WheelPicker is scrolling from top to bottom
|
void |
onWheelScrollStateChanged(int state)
Invoke when WheelPicker's scroll state changed
The state of WheelPicker always between idle, dragging, and scrolling, this method will
be called when they switch
|
void |
onWheelSelected(int position)
Invoke when WheelPicker scroll stopped
This method will be called when WheelPicker stop and return current selected item data's
position in list
|
void onWheelScrolled(int offset)
Invoke when WheelPicker scroll stopped WheelPicker will return a distance offset which between current scroll position and initial position, this offset is a positive or a negative, positive means WheelPicker is scrolling from bottom to top, negative means WheelPicker is scrolling from top to bottom
offset - Distance offset which between current scroll position and initial position
void onWheelSelected(int position)
Invoke when WheelPicker scroll stopped This method will be called when WheelPicker stop and return current selected item data's position in list
position - Current selected item data's position in list
void onWheelScrollStateChanged(int state)
Invoke when WheelPicker's scroll state changed The state of WheelPicker always between idle, dragging, and scrolling, this method will be called when they switch
state - WheelPicker.SCROLL_STATE_IDLE
WheelPicker.SCROLL_STATE_DRAGGING
WheelPicker.SCROLL_STATE_SCROLLING
State of WheelPicker, only one of the following
WheelPicker.SCROLL_STATE_IDLE
Express WheelPicker in state of idle
WheelPicker.SCROLL_STATE_DRAGGING
Express WheelPicker in state of dragging
WheelPicker.SCROLL_STATE_SCROLLING
Express WheelPicker in state of scrolling