The material design team at Google simply defines the functionality of tabs in Android as follows:
Tabs make it easy to explore and switch between different views.
In this post you'll learn how to display tabs using the TabLayout and ViewPager API. In this practical tutorial, we'll cover the following:
- the TabLayout and ViewPager components
- the different tab modes: scrollable and fixed
- how to display icons instead of text for the tab titles
- for a bonus, you'll also learn how to use the Android Studio templates feature to quickly bootstrap your project with a tabbed interface.
These are source files for the Envato Tuts+ tutorial: Create a Material Design Tabbed Interface in an Android App
Available on Envato Tuts+. Teaching skills to millions worldwide.