Chapter 6
Working with Menus and Action Bars
Android SDK supports regular menus, submenus, context menus, icon menus, and secondary menus. Android 3.0 introduced the action bar, which integrates well with menus. We will cover both menus and action bars in this chapter.
Like many other chapters in the book, we will present the essential code snippets that you can use to work with menus and action bars. The completer code context for these snippets is available in the downloadable application that is specifically developed for this chapter. The link for these downloadable projects is given in the “Resources” section at the end of this chapter.
Working with Menus Through XML Files
In Android the easiest way to work with menus is through XML ...
Get Pro Android 5, Fifth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.