问题
I would like to build a dropdownmenu for Android 2.3.3 . But I dont know how to do that. Can somebody recommend some examples(Github etc.)? It would be very helpfull. There is a sample pictures of a Dropdownmenu below.
Thanks
回答1:
I think it's part of the action bar in android 3.0 and up. http://developer.android.com/guide/topics/ui/actionbar.html
To use it in earlier version you have to create it your self or I think you can use open source action bar. like http://actionbarsherlock.com/
You could just build a list inside a relative layout and make it invisible until you press the button.
回答2:
Looks like a normal Spinner to me.
Here is an example: http://developer.android.com/resources/tutorials/views/hello-spinner.html
来源:https://stackoverflow.com/questions/10063564/dropdownmenu-in-android2-3-3