| Start |
|---|
| Basic implemetation To add the
Checkout demo code at BottomNavigation-Demo (opens new window) |
| Customization of BottomNavigationView Note : I am assuming that you know about how to use This example I will explain how to add selector for Create drawable And use below attributes into In above example, I have used same selector `bottom_navigation_view_selector` for `app:itemIconTint` and `app:itemTextColor` both to keep text and icon colors same. But if your design has different color for text and icon, you can define 2 different selectors and use them. Output will be similar to below |
| Handling Enabled / Disabled states Create Selector for Enable/Disable Menu Item. selector.xml design.xml |
| Allowing more than 3 menus This example is strictly a workaround since, currently there is no way to disable a behaviour known as ShiftMode. Create a function as such. This disables the Shifting behaviour of the menu when item count exceeds 3 nos. USAGE Proguard Issue : Add following line proguard configuration file as well else, this wouldn't work. Alternatively, you can create a Class and access this method from there. See Original Reply Here (opens new window) NOTE : This is a Reflection based HOTFIX, please update this once Google's support library is updated with a direct function call. RemarksRepresents a standard bottom navigation bar for application. It is an implementation of material design bottom navigation. Links: |
Read Article
https://develop.horje.com/learn/1434/reference