Create a new project in Android Studio from File ⇒ New Project and select Basic Activity from templates.Ģ. Now let’s try it by creating a new project in Android Studio. > Bottom Navigation – Use when there are three to five top-level destinations.īefore going further, have a quick look at the design specifications of Bottom Navigation. > Tabs – Use when there are two navigational destinations. > Navigation Drawer – Use when top-level navigation has more than six destinations. Here few important attributes have to noted down.Īpp:menu - The menu resource file to display the navigation items along with icon and text.Īpp:itemBackground - Applies background color to bottom navigation.Īpp:itemTextColor - The text color of bottom navigation item.Īpp:itemIconTint - The icon color of bottom navigation item.Īs per the design specs, the below navigations should be used depending on the criteria. You have to use gravitation or relative attributes to make it appear at the bottom of the screen. The Bottom Navigation can be easily added using BottomNavigationView component.
0 Comments
Leave a Reply. |