I want to create a drop down navigation. I drew this sketch:
I already tried spinner, but I do not need this combobox, only the list that shows the button on the button
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
ApiDemos- > Views- > . . , , , , .
You can also create Dialogand inflate its view from the xml layout.
Dialog
Dialog dialog = new Dialog(this); dialog.setContentView(R.layout.popup); dialog.show();