Java android.widget NumberPicker fields, constructors, methods, implement or subclass

Example usage for Java android.widget NumberPicker fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.widget NumberPicker.

The text is from its open source code.

Constructor

NumberPicker(Context context)
Create a new number picker.

Method

voidclearFocus()
DrawablegetCurrent()
intgetId()
Returns this view's identifier.
ViewGroup.LayoutParamsgetLayoutParams()
Get the LayoutParams associated with this view.
intgetMaxValue()
Returns the max value of the picker.
intgetMinValue()
Returns the min value of the picker.
chargetNumber()
Gets the number or symbol associated with the key.
intgetValue()
Returns the value of the picker.
voidinvalidate()
Invalidate the whole view.
voidsetDescendantFocusability(int focusability)
Set the descendant focusability of this view group.
voidsetDisplayedValues(String[] displayedValues)
Sets the values to be displayed.
voidsetFormatter(Formatter formatter)
Set the formatter to be used for formatting the current value.
voidsetLayoutParams(ViewGroup.LayoutParams params)
Set the layout parameters associated with this view.
voidsetMaxValue(int maxValue)
Sets the max value of the picker.
voidsetMinValue(int minValue)
Sets the min value of the picker.
voidsetOnScrollListener(OnScrollListener onScrollListener)
Set listener to be notified for scroll state changes.
voidsetOnValueChangedListener(OnValueChangeListener onValueChangedListener)
Sets the listener to be notified on change of the current value.
voidsetValue(int value)
Set the current value for the number picker.
voidsetVisibility(@Visibility int visibility)
Set the visibility state of this view.
voidsetWrapSelectorWheel(boolean wrapSelectorWheel)
Sets whether the selector wheel shown during flinging/scrolling should wrap around the NumberPicker#getMinValue() and NumberPicker#getMaxValue() values.