开发者

android honeycomb list menus

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜