Reputation: 1508
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
Any ideas? Apparently ABS can be used for this but I can't figure it out, please help :)
Upvotes: 2
Views: 990
Reputation: 76075
ListPopupWindow
is what you're looking for. It's an API 11+ class, however. ABS includes a backported version which is basically just a ListView
inside a PopupWindow
(both API 1 classes).
Upvotes: 5