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

Get Pro Android 4 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.