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

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

Introduction

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

The text is from its open source code.

Subclass

android.widget.Spinner has subclasses.
Click this link to see all its subclasses.

Field

intMODE_DIALOG
Use a dialog window for selecting spinner options.
intMODE_DROPDOWN
Use a dropdown anchored to the Spinner for selecting spinner options.

Constructor

Spinner(Context context)
Constructs a new spinner with the given context's theme.
Spinner(Context context, int mode)
Constructs a new spinner with the given context's theme and the supplied mode of displaying choices.
Spinner(Context context, AttributeSet attrs)
Constructs a new spinner with the given context's theme and the supplied attribute set.

Method

booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
SpinnerAdaptergetAdapter()
intgetCount()
ViewgetSelectedView()
booleanperformClick()
voidsetAdapter(SpinnerAdapter adapter)
Sets the SpinnerAdapter used to provide the data which backs this Spinner.
voidsetEnabled(boolean enabled)
voidsetGravity(int gravity)
Describes how the selected item view is positioned.
voidsetPrompt(CharSequence prompt)
Sets the prompt to display when the dialog is shown.
voidsetSelection(int position)
voidsetSelection(int position, boolean animate)
Jump directly to a specific item in the adapter data.