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 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.