Android Spinner |Android App Development With AndroidCource

Thursday 14 September 2017

Android Spinner

Spinner


Spinner is a Click spinner will display drop-down list with the available values.

Inherited spinner class from “android.widget.Spinner”

It provides a quick way to select one value from a set. By Default spinner show currently selected value.

Spinner is like the ComboBox of AWT or Swing in the Java.

It can be used to display the multiple options to the user in which only one item can be selected by the user.

spinner is associated with AdapterView.it can use one of the adapter class with spinner.


What is ArrayAdapter ?

ArrayAdapter class can handle a list or array of Java objects as input.

Every Java object is mapped to one row.

By default it maps the toString() method of the object to a view in the row layout.

An adapter is used for managing the items in the list.

0 comments:

Post a Comment