O'Reilly logo

Pro Android 4 by Satya Komatineni, Dave MacLean

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

Tabbed Navigation Action Bar Activity

Although you are planning three different activities, each with its own type of action bar, these example activities have a lot of common functionality:

  • All of these activities have the same debug text view so you can monitor the actions as they are invoked.
  • All of these activities have the same Home icon.
  • All of these activities have a title.
  • All of these activities have the same action icons.
  • All of these activities have the same Options menu.

The primary difference between these activities is that each configures the action bar differently. In the example, you encapsulate the common behavior in a base class and allow each of the derived activities, including this tabbed action bar activity, to configure ...

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