Android Guides | Samples

Android.Widget.NumberPicker Class

A widget that enables the user to select a number from a predefined range.

See Also: NumberPicker

Syntax

[Android.Runtime.Register("android/widget/NumberPicker", DoNotGenerateAcw=true)]
public class NumberPicker : LinearLayout

Remarks

A widget that enables the user to select a number from a predefined range. There are two flavors of this widget and which one is presented to the user depends on the current theme.

For an example of using this widget, see TimePicker.

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11

The members of Android.Widget.NumberPicker are listed below.

See Also: LinearLayout

Public Constructors

Create a new number picker.
Create a new number picker.
Create a new number picker
Create a new number picker

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

MaxValueInt32. Returns the max value of the picker.
MinValueInt32. Returns the min value of the picker.
ValueInt32. Returns the value of the picker.
WrapSelectorWheelBoolean. Gets whether the selector wheel wraps when reaching the min/max value.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

GetDisplayedValues() : String[]
Gets the values to be displayed instead of string values.
SetDisplayedValues(String[])
Sets the values to be displayed.
SetFormatter(NumberPicker+IFormatter)
Set the formatter to be used for formatting the current value.
SetOnLongPressUpdateInterval(Int64)
Sets the speed at which the numbers be incremented and decremented when the up and down buttons are long pressed respectively.
SetOnScrollListener(NumberPicker+IOnScrollListener)
Set listener to be notified for scroll state changes.
SetOnValueChangedListener(NumberPicker+IOnValueChangeListener)
Sets the listener to be notified on change of the current value.

Public Events