Android Dropdown-Menu (no counter!)

I want to create a drop down navigation. I drew this sketch:

enter image description here

I already tried spinner, but I do not need this combobox, only the list that shows the button on the button

+5
source share
3 answers

I assume that you are working on the API below 11. The drop-down Spinner is available from API level 11 using the Actionbar. But you can use Actionbar sherlock. Download the demos (as a source from Github or as an application from the play store). Actionbarsherlock implements dropdownspinners. It should look like this:

: https://github.com/JakeWharton/ActionBarSherlock

+3

ApiDemos- > Views- > . . , , , , .

+3

You can also create Dialogand inflate its view from the xml layout.

Dialog dialog = new Dialog(this);
dialog.setContentView(R.layout.popup);
dialog.show();
+1
source

All Articles