Dropdownmenu in Android(2.3.3)

ε祈祈猫儿з 提交于 2020-01-06 03:05:31

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!