Android Programming: The Big Nerd Ranch Guide, 5th Edition
by Bryan Sills, Brian Gardner, Kristin Marsicano, Chris Stewart
For the More Curious: App Bar vs Action Bar vs Toolbar
You will often hear people refer to the app bar as the “toolbar” or the “action bar.” And the official Android documentation uses these terms interchangeably. But are the app bar, action bar, and toolbar really the same thing? In short, no. The terms are related, but they are not exactly equivalent.
The UI design element itself is called an app bar. Prior to Android 5.0 (Lollipop, API level 21), the app bar was implemented using the ActionBar class. The terms action bar and app bar came to be treated as one and the same. Then, starting with Android 5.0, the Toolbar class was introduced as the preferred method for implementing the app bar. And, to keep things interesting, in Jetpack ...
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