Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dropdown menu in android

I wanna make a dropdown-menu like the one in the attached picture in android I searched a lot but I Couldn't find anything?

Could you tell me how to start?

dropdown-menu

like image 398
FAFI Avatar asked Jun 11 '11 22:06

FAFI


People also ask

What is drop-down menu in Android?

A dropdown or pull-down menu, also known as spinner, is one of the most essential UI elements for an app. In this tutorial I'll tell you how to add one to your Android app using Java. Dropdown menus organize an app and improve the user experience. Almost every app has a dropdown menu integrated into its user interface.

What is drop-down menu in phone?

A drop-down menu is a clean method of showing a large list of choices since only one choice is displayed initially until the user activates the drop-down box.

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.


1 Answers

If you are trying to do something where you see a list of items as you type in text into a TextView, you may be looking for an AutoCompleteTextView. An implementation example can be found here.

If you are trying for the more usual drop down menu, you may want to use a Spinner widget. An example of its implementation can be found here.

Let me know if you need any more help.

like image 190
Vinay Avatar answered Sep 21 '22 05:09

Vinay