6. Navigation and Data Loading

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.

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

Get Android UI Fundamentals: Develop and Design 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.