Android Action sheet

ADARSH YADAV picture ADARSH YADAV · Apr 17, 2012 · Viewed 15.1k times · Source

In iPhone, there is the concept of Action Sheet. I want to use the same functionality on a button click in Android, but Android doesn't have Action Sheet. Can anyone tell me the equivalent of Action Sheet in Android?

Answer

Aziz Shaikh picture Aziz Shaikh · Apr 17, 2012

You may use Popup Menu in Android

A popup menu displays a list of items in a vertical list that's anchored to the view that invoked the menu. It's good for providing an overflow of actions that relate to specific content or to provide options for a second part of a command. Actions in a popup menu should not directly affect the corresponding content—that's what contextual actions are for. Rather, the popup menu is for extended actions that relate to regions of content in your activity.