What is the difference between a context menu and a popup menu against the bottom sheet?

What is the difference between a context menu and a popup menu against the bottom sheet? and in what situations are they best suited?

+6
source share
2 answers

Option menu The Menu option is the android main menu. They can be used to configure, search, delete an item, etc. We inflate() method menu by calling the inflate() method of the MenuInflater class. To handle events in menu items, you need to override the onOptionsItemSelected() method of the Activity class.

Context menu When a user clicks on an item, click the Android context menu. It is also known as a floating menu.

Bottom sheets The bottom sheet is a sheet of material that slides up from the bottom of the screen and is a set of clear and simple actions.

Read this SO answer difference-between-context-menu-and-option-menu-in-android

+5
source

BottomSheet is an Android component that has an invalid view at the bottom of the screen. https://camo.githubusercontent.com/fce3d0f29234bac59e8641e0a9198ae64e0d7bd8/687474703a2f2f692e696d6775722e636f6d2f66326a395935652e676966 You can see this in more details at http://www.google.com/command/content/google/com/projects/google/com/project/files/ -sheets.html )

A popup menu is one of the types of dialog box, it allows you to bind the dialog to a specific element on the user interface like this . With it, you can implement the Quick Actions user interface template.

I'm not right now when I need to use the context menu, sory

And litter for my bad English =)

+1
source

All Articles