Skip to Main Content
Beginning Android Programming: Develop and Design
book

Beginning Android Programming: Develop and Design

by Chris Haseman, Kevin Grant
December 2013
Beginner content levelBeginner
320 pages
7h 54m
English
Peachpit Press
Content preview from Beginning Android Programming: Develop and Design

Chapter 11. Advanced Navigation

By now, you have just about all the major building blocks necessary to build a basic application. But sometimes, the basic building blocks just aren’t fun enough. This chapter gives you a basic overview of two of the most common navigational paradigms, the view pager and the navigation drawer.

The View Pager

A view pager is a way of navigating left and right through pages of data, generally using the swipe left and swipe right gestures. A view pager, like a list, takes an adapter, called a PagerAdapter, to generate the content to show. Two subclasses are built into the support library for the PagerAdapter: FragmentPagerAdapter and FragmentStatePagerAdapter. Both essentially accomplish the same thing—they show ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Creating Android Applications: Develop and Design

Creating Android Applications: Develop and Design

Chris Haseman
Android Fragments

Android Fragments

Dave MacLean, Satya Komatineni

Publisher Resources

ISBN: 9780133572681Purchase book