开发者

android honeycomb list menus

开发者 https://www.devze.com 2023-03-31 18:24 出处:网络
I feel stupid for asking: What are the drop menus on honeycomb apps called? I\'d like to use them in my app but i don\'t even know where to start.

I feel stupid for asking: What are the drop menus on honeycomb apps called? I'd like to use them in my app but i don't even know where to start.

A开发者_Go百科n Example from Google Music, notice the triangle in the corner:

android honeycomb list menus

Here it is opened:

android honeycomb list menus

I found the Menu, which appears in the top right. I don't think they are context menus which you usually see associated with long holding touches.

(I realize these images are from the website, but they are all over honeycomb apps too)


The action bar will display your Activity's options menu in the top right automatically, but PopupMenu might be what you're looking for. It lets you generate a simple popup menu anchored to any View in your UI. Inflate a menu resource into the Menu object returned by getMenu, set a listener to respond to the user making a choice from the menu and call the show method.

0

精彩评论

暂无评论...
验证码 换一张
取 消