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

Standard Navigation Action Bar Activity

In this section, you examine the nature of a standard navigation action bar. You set up an activity and set its action bar navigation mode as standard. You then see what the standard navigation looks like and examine its behavior.

As in the case of ListNavigationActionBarActivity, because your base classes are carrying most of the work, it is easy to implement and test the standard action bar navigation activity. You need the following additional file:

  • StandardNavigationActionBarActivity.java: This is the implementation file for configuring the action bar as a standard navigation mode action bar (Listing 10–17).

You also need to update the following two files:

  • BaseActionBarActivity.java: Uncomment 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