Most visited

Recently visited

Added in API level 11

NumberPicker.OnScrollListener

public static interface NumberPicker.OnScrollListener

android.widget.NumberPicker.OnScrollListener


用于侦听拾取器滚动状态的界面。

Summary

Constants

int SCROLL_STATE_FLING

用户以前一直在使用触摸进行滚动,并进行了一次投掷。

int SCROLL_STATE_IDLE

该视图不滚动。

int SCROLL_STATE_TOUCH_SCROLL

用户使用触摸进行滚动,他的手指仍然在屏幕上。

Public methods

abstract void onScrollStateChange(NumberPicker view, int scrollState)

数字选取器滚动状态发生变化时调用回调。

Constants

SCROLL_STATE_FLING

Added in API level 11
int SCROLL_STATE_FLING

用户以前一直在使用触摸进行滚动,并进行了一次投掷。

常量值:2(0x00000002)

SCROLL_STATE_IDLE

Added in API level 11
int SCROLL_STATE_IDLE

该视图不滚动。

常量值:0(0x00000000)

SCROLL_STATE_TOUCH_SCROLL

Added in API level 11
int SCROLL_STATE_TOUCH_SCROLL

用户使用触摸进行滚动,他的手指仍然在屏幕上。

常数值:1(0x00000001)

Public methods

onScrollStateChange

Added in API level 11
void onScrollStateChange (NumberPicker view, 
                int scrollState)

数字选取器滚动状态发生变化时调用回调。

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

Hooray!