Tabbed navigation
Tabbed navigation is mostly used when you want to display related items. It is common to have fixed tabs if there’s only a few of them (typically between two and five tabs) and scrolling horizontal tabs if you have more than five tabs. They are used mostly for grouping destinations that are at the same hierarchical level.
This can be the primary navigation if the destinations are related. This might be the case if the app you developed is in a narrow or specific subject field where the primary destinations are related, such as a news app. More commonly, it is used with bottom navigation to present secondary navigation that’s available within a primary destination. The following exercise demonstrates using tabbed navigation for displaying related items.
Exercise 4.03 – using tabs for app navigation
Create a new app in Android Studio with an Empty Activity
named Tab Navigation
. You are going to build a skeleton movies app that displays...