Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

6. Navigation and Data Loading > Introducing the Action Bar

Introducing the Action Bar

Starting with version 3, Android gained a major new UI paradigm called the action bar (Figure 6.1). The action bar sits at the top of the screen and contains the app name, the app icon, navigation elements (such as tabs), and a series of buttons for quick actions. Using this native UI element, Android developers can quickly add functionality to their apps and create a platform-consistent user interface.

image

Figure 6.1 The action bar running on Android 4.01. Shown are a single action item, the overflow menu, and the drop-down that appears after tapping the overflow menu.


image Tip

The action bar is automatically added to your app if it’s using one of the Holo themes. Theme.Holo is the default for all apps with a target SDK version of 11 or higher (Android version 3.0).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial