14 The App Bar

A key component of any well-designed Android app is the app bar. The app bar includes actions that the user can take, provides an additional mechanism for navigation, and also provides design consistency and branding.

In this chapter, you will add a menu option to the app bar that lets users add a new crime (Figure 14.1).

Figure 14.1  CriminalIntent’s app bar

CriminalIntent’s app bar

The app bar is often referred to as either the action bar or toolbar, depending on who you ask. You will learn more about these overlapping terms in the section called For the More Curious: App Bar vs Action Bar vs Toolbar near the end of this chapter. ...

Get Android Programming: The Big Nerd Ranch Guide, 4th Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.