Example usage for Java android.widget Spinner fields, constructors, methods, implement or subclass
The text is from its open source code.
int | MODE_DIALOG Use a dialog window for selecting spinner options. |
int | MODE_DROPDOWN Use a dropdown anchored to the Spinner for selecting spinner options. |
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. |
boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. |
SpinnerAdapter | getAdapter() |
int | getCount() |
View | getSelectedView() |
boolean | performClick() |
void | setAdapter(SpinnerAdapter adapter) Sets the SpinnerAdapter used to provide the data which backs this Spinner. |
void | setEnabled(boolean enabled) |
void | setGravity(int gravity) Describes how the selected item view is positioned. |
void | setPrompt(CharSequence prompt) Sets the prompt to display when the dialog is shown. |
void | setSelection(int position) |
void | setSelection(int position, boolean animate) Jump directly to a specific item in the adapter data. |