O'Reilly logo

Java for Android, Second Edition by Budi Kurniawan

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

Chapter 29

The Action Bar

The action bar is a rectangular window area that contains the application icon, application name, menus and other navigation buttons. The action bar normally appears at the top of the window.

This chapter explains how to decorate the action bar on Android with API level 11 (Android 3.0) or higher.

Overview

The action bar is represented by the android.app.ActionBar class. It should look familiar to any Android user. Figure 29.1 shows the action bar of the Messaging application and Figure 29.2 shows that of Calendar.

Figure 29.1: The action bar of Messaging

Figure 29.2: The action bar of Calendar

The ...

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