Android Spinner/Dropdown Tutorials – How to Work Spinner in Android Example

By | April 16, 2019

What is Spinner ?

Spinner allows user to select an item from a dropdown menu.spinner provide a quick way to select one value from a set.In The Default state,a spinner shows its currently selected value.

When user to touch or click to spinner and display dropdown menu with all other available values from which you can select a new one value.

Spinner is used to display multiple options to the user and user only one item selected from spinner.Spinner like a dropdown menu with multiple values from which the end user can select only one value.

Spinner is a provided one Adapter you need to create one of the adapter class with spinner.

Implementation of Spinner

I have Create New Project in activity_main.xml file. you can write the following below code

Now Create File And Set Spinner Drop Down List of Create one Adapter.

Another I have Add StringArray from String Resource in res/String.xml file.