This chapter builds on previous chapters by showing you how to create navigation within your app. You will learn that the action bar replaces the options menu and creates consistent functionality across Android apps; that tabbed interfaces leverage the action bar, but you need to fall back to
TabWidget on older versions of Android; that the
ViewPager class lets you add side-to-side swiping navigation to your application; that adapters are used to bind your data to your displayed views; and that loaders offer a simplified method of obtaining the data for your UI.
Starting with version 3, Android gained a major new UI paradigm called the action bar (Figure 6.1). The action bar sits at the ...