Chapter 27. Using the Action Bar
One of the easiest ways to make your application blend in better with the Honeycomb UI is to enable the action bar, introduced in Chapter 26. What makes it "easy" is that most of the basic functionality of the action bar is backward compatible—the Honeycomb settings will not cause the application to crash on earlier versions of Android.
The sample project shown in this chapter is Menus/ActionBar
, which extends the Menus/Inflation
project shown in a previous chapter.
Enabling the Action Bar
By default, your Android application will not use the action bar. In fact, it will not even be displayed on the screen. If you want the action bar to appear on the screen, you need to include android:targetSdkVersion="11"
in your ...
Get Beginning Android 3 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.