Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Dropdown-Menu (No spinner!)

I want to create a dropdown navigation. I drew this sketch:

enter image description here

I already tried a spinner, but I don't want that combobox, only that list, which shows on the button click.

like image 240
Jopi Avatar asked Aug 28 '12 19:08

Jopi


1 Answers

I am assuming you are working on an API below 11. The Dropdown spinner is available from API Level 11 with the Actionbar. But you could use Actionbar sherlock. Download the Demos( as source from Github or as an app from the play store). The actionbarsherlock implements dropdownspinners. It should look like this:

You can get the Library from: https://github.com/JakeWharton/ActionBarSherlock

like image 89
Ahmad Avatar answered Nov 11 '22 11:11

Ahmad