Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add DropDown in Android application

I want to add drop down list in android application. Can anybody tell me, how to do this?

like image 521
Soniya Avatar asked Aug 17 '11 15:08

Soniya


People also ask

Which control works as a drop down list in Android?

In android, Spinner is a view that allows a user to select one value from the list of values. The spinner in android will behave same as a dropdown list in other programming languages.

Which of the following look like a Dropdownlist in Android?

Android Spinner is just a drop down list similar to what's seen in other programming languages such as in HTML pages. In Android, Spinner is used to select one value from a set of values. In the default state, a spinner shows its currently selected value.


1 Answers

Android does not have any 'Drop Down' Option. You should use the 'Spinner' instead of.

Here is the implementation of Spinner:

http://developer.android.com/reference/android/widget/Spinner.html

like image 113
Rubyd Avatar answered Sep 28 '22 15:09

Rubyd