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?
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With