tmho
tmho

Reputation: 1508

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

screenshot 1

screenshot 2

screenshot 3

Any ideas? Apparently ABS can be used for this but I can't figure it out, please help :)

Upvotes: 2

Views: 990

Answers (1)

Jake Wharton
Jake Wharton

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

Related Questions