NumberPicker Constructors

Definition

Overloads

NumberPicker(Context)

Create a new number picker.

NumberPicker(Context, IAttributeSet)

Create a new number picker.

NumberPicker(IntPtr, JniHandleOwnership)

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

NumberPicker(Context, IAttributeSet, Int32)

Create a new number picker

NumberPicker(Context, IAttributeSet, Int32, Int32)

Create a new number picker

NumberPicker(Context)

Create a new number picker.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public NumberPicker (Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.Widget.NumberPicker : Android.Content.Context -> Android.Widget.NumberPicker

Parameters

context
Context

The application environment.

Attributes

Remarks

Create a new number picker.

Java documentation for android.widget.NumberPicker.NumberPicker(android.content.Context).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

NumberPicker(Context, IAttributeSet)

Create a new number picker.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")]
public NumberPicker (Android.Content.Context? context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "")>]
new Android.Widget.NumberPicker : Android.Content.Context * Android.Util.IAttributeSet -> Android.Widget.NumberPicker

Parameters

context
Context

The application environment.

attrs
IAttributeSet

A collection of attributes.

Attributes

Remarks

Create a new number picker.

Java documentation for android.widget.NumberPicker.NumberPicker(android.content.Context, android.util.AttributeSet).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

NumberPicker(IntPtr, JniHandleOwnership)

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

protected NumberPicker (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Widget.NumberPicker : nativeint * Android.Runtime.JniHandleOwnership -> Android.Widget.NumberPicker

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

NumberPicker(Context, IAttributeSet, Int32)

Create a new number picker

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")]
public NumberPicker (Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "")>]
new Android.Widget.NumberPicker : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Widget.NumberPicker

Parameters

context
Context

the application environment.

attrs
IAttributeSet

a collection of attributes.

defStyleAttr
Int32

An attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults.

Attributes

Remarks

Create a new number picker

Java documentation for android.widget.NumberPicker.NumberPicker(android.content.Context, android.util.AttributeSet, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

NumberPicker(Context, IAttributeSet, Int32, Int32)

Create a new number picker

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")]
public NumberPicker (Android.Content.Context? context, Android.Util.IAttributeSet? attrs, int defStyleAttr, int defStyleRes);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V", "")>]
new Android.Widget.NumberPicker : Android.Content.Context * Android.Util.IAttributeSet * int * int -> Android.Widget.NumberPicker

Parameters

context
Context

the application environment.

attrs
IAttributeSet

a collection of attributes.

defStyleAttr
Int32

An attribute in the current theme that contains a reference to a style resource that supplies default values for the view. Can be 0 to not look for defaults.

defStyleRes
Int32

A resource identifier of a style resource that supplies default values for the view, used only if defStyleAttr is 0 or can not be found in the theme. Can be 0 to not look for defaults.

Attributes

Remarks

Create a new number picker

Java documentation for android.widget.NumberPicker.NumberPicker(android.content.Context, android.util.AttributeSet, int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to