Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static interface

NumberPicker.OnScrollListener

android.widget.NumberPicker.OnScrollListener

Class Overview

Interface to listen for the picker scroll state.

Summary

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

Constants

public static final int SCROLL_STATE_FLING

The user had previously been scrolling using touch and performed a fling.

Constant Value: 2 (0x00000002)

public static final int SCROLL_STATE_IDLE

The view is not scrolling.

Constant Value: 0 (0x00000000)

public static final int SCROLL_STATE_TOUCH_SCROLL

The user is scrolling using touch, and his finger is still on the screen.

Constant Value: 1 (0x00000001)

Public Methods

public abstract 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 .