Skip to content

Common Navigation Paradigms

Nathan Esquenazi edited this page Oct 27, 2013 · 9 revisions

Overview

Navigation between views is an important part of any application. There are several ways to setup navigation in an Android application:

  • ActionBar - Using the ActionBar and/or ActionBar tabs to switch between different views
  • Navigation Drawer - Displays a vertical menu that slides in to allow navigation between views
  • Screen Map - Providing a series of buttons on screen that can be pressed to visit different views
  • Swipe Views - Allow paging between views using a swipe gesture

These four represent the most common navigation paradigms in Android applications. The specifics for how to implement these can be found in the various links above.

ActionBar Tabs

For a description of how to add ActionBar tabs to your Activity, check out the ActionBar Tabs cliffnotes for more details.

Navigation Drawer

To create a basic navigation drawer that toggles between displaying different fragments, check out the Fragment Navigation Drawer cliffnotes. For more details about creating a custom drawer check out the Creating a Navigation Drawer docs.

References

Finding these guides helpful?

We need help from the broader community to improve these guides, add new topics and keep the topics up-to-date. See our contribution guidelines here and our topic issues list for great ways to help out.

Check these same guides through our standalone viewer for a better browsing experience and an improved search. Follow us on twitter @codepath for access to more useful Android development resources.

Interested in ramping up on Android quickly?

(US Only) If you are an existing engineer with 2+ years of professional experience in software development and are serious about ramping up on Android quickly, be sure to apply for our free evening 8-week Android bootcamp.

We've trained over a thousand engineers from top companies including Apple, Twitter, Airbnb, Uber, and many others leveraging this program. The course is taught by Android experts from the industry and is specifically designed for existing engineers.

Not in the United States? Please fill out our application of interest form and we’ll notify you as classes become available in your area powered by local organizers.

Clone this wiki locally