Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)

Developer Docs

Creating Swipe Views with Tabs

Tabs in the action bar make it easy to explore and switch between different views or functional aspects of your app, or to browse categorized data sets.

For details on using gestures to move between tabs, see the Swipe Views pattern.

Scrollable Tabs

Scrolling tab controls can contain a larger number of items than a standard tab control. To navigate to the next/previous view, swipe left or right.

Scrolling tabs in the Play Store app.
 

Fixed Tabs

Fixed tabs display all items concurrently. To navigate to a different view, touch the tab, or swipe left or right.

Fixed tabs are displayed with equal width, based on the width of the widest tab label. If there is insufficient room to display all tabs, the tab labels themselves will be scrollable. For this reason, fixed tabs are best suited for displaying 3 or fewer tabs.

Tabs in Holo Dark & Light.
Tabs in the Google Play Movies app.