net.simonvt.numberpicker
Interface NumberPicker.OnScrollListener

Enclosing class:
NumberPicker

public static interface NumberPicker.OnScrollListener

Interface to listen for the picker scroll state.


Field Summary
static int SCROLL_STATE_FLING
          The user had previously been scrolling using touch and performed a fling.
static int SCROLL_STATE_IDLE
          The view is not scrolling.
static int SCROLL_STATE_TOUCH_SCROLL
          The user is scrolling using touch, and his finger is still on the screen.
 
Method Summary
 void onScrollStateChange(NumberPicker view, int scrollState)
          Callback invoked while the number picker scroll state has changed.
 

Field Detail

SCROLL_STATE_IDLE

static final int SCROLL_STATE_IDLE
The view is not scrolling.

See Also:
Constant Field Values

SCROLL_STATE_TOUCH_SCROLL

static final int SCROLL_STATE_TOUCH_SCROLL
The user is scrolling using touch, and his finger is still on the screen.

See Also:
Constant Field Values

SCROLL_STATE_FLING

static final int SCROLL_STATE_FLING
The user had previously been scrolling using touch and performed a fling.

See Also:
Constant Field Values
Method Detail

onScrollStateChange

void onScrollStateChange(NumberPicker view,
                         int scrollState)
Callback invoked while the number picker scroll state has changed.

Parameters:
view - The view whose scroll state is being reported.
scrollState - The current scroll state. One of SCROLL_STATE_IDLE, SCROLL_STATE_TOUCH_SCROLL or SCROLL_STATE_IDLE.


Copyright © 2012-2013. All Rights Reserved.