User Experience Android Flashcards

1
Q

Types of Menus

A

App Bar with Options Menu

Contextual menus -Allow users to perform an action on a selected view or content…Can be deployed on any View object, but most often used for items in a RecyclerView, GridView, or other view collection.
- Floating context menu- floating list of menu items when long-presses on a view element

  • Contextual action mode - temporary action bar in place of or underneath the app bar

Popup menus - should not directly affect view content
(print, reply, share etc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Steps to implement options menu

A

XML menu resource (menu_main.xml)
onCreateOptionsMenu() to inflate the menu
onClick attribute or onOptionsItemSelected()
Method to handle item click

How well did you know this?
1
Not at all
2
3
4
5
Perfectly