[英]Custom Overflow Menu Outside of ActionBar
I need to implement a custom overflow menu with menu items and the overflow icon if the screen size cannot show all the icons. 如果屏幕尺寸不能显示所有图标,则需要使用菜单项和溢出图标实现自定义溢出菜单。 I cannot use a side scroll since I am already inside an expanded list view.
我已经在展开列表视图中,因此无法使用侧面滚动。 I cannot use the Top or bottom action bar menu because the action will change based on what list item has been expanded.
我不能使用“顶部”或“底部”操作栏菜单,因为操作将根据展开的列表项而改变。
So I would like to create my own overflow menu - similar to the gmail screenshots attached 所以我想创建自己的溢出菜单-类似于所附的gmail屏幕截图
Any ideas? 有任何想法吗? Apparently ABS can be used for this but I can't figure it out, please help :)
显然可以使用ABS,但我无法弄清楚,请帮助:)
ListPopupWindow
is what you're looking for. ListPopupWindow
是您要寻找的。 It's an API 11+ class, however. 但是,这是一个API 11+类。 ABS includes a backported version which is basically just a
ListView
inside a PopupWindow
(both API 1 classes). ABS包含一个向后移植的版本,该版本基本上只是
PopupWindow
内部的ListView
(均为API 1类)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.