O'Reilly logo

Android Programming: The Big Nerd Ranch Guide by Brian Hardy, Bill Phillips

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

16The Action Bar

The action bar was introduced in Honeycomb. It replaced the old-school title bar, but it does more than just display a title and an app icon. The action bar can also house menu items, and its app icon can be used as a navigation button.

In this chapter, you will create a menu for CriminalIntent. This menu will have a menu item that lets users add a new crime. You will also enable the app icon to be an Up button.

Figure 16.1  Creating the options menu file

Creating the options menu file

Options Menus

The menu that can appear on the action bar is called the options menu. An options menu presents users with choices that refer to the entire screen or the app as ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required