Chapter 4
Android UI Options Menus: OptionsMenu Class and the Action Bar
Now that we have covered the ViewGroup (UI layouts) and View (UI widgets) classes in Android OS, in this chapter we learn more about the Android Menu class. The Menu class allows us to create different types of menu structures in Android—from OptionsMenus to ActionBar menus to ContextMenus to PopUpMenus.
We focus on Android OptionsMenu class in this chapter, as they are the most important type of menu in Android, and then later on we will work with more localized PopupMenu and ContextMenu classes in the next chapter.
Implementing menus in Android is not all that different from implementing UI widgets and layout designs. The menu design work is done using XML, in the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access