Bottom Navigation
Bottom navigation is used when there are a limited number of top-level destinations, and these can range from three to five primary destinations that are not related to each other. Each item on the bottom navigation bar displays an icon and an optional text label. This navigation allows quick access as the items are always available, no matter which secondary destination of the app the user navigates to.
Exercise 4.02: Adding Bottom Navigation to Your App
Create a new app in Android Studio named Bottom Navigation
using the Empty Activity
project template, leaving all the other defaults as they are. Do not use the Bottom Navigation Activity
project template as we are going to use incremental steps to build the app. You are going to build a loyalty app that provides offers, rewards, and so on for customers who have signed up to use it. Bottom navigation is quite common for this kind of app because, typically, there will be limited top-level destinations. Let...