Bottom Navigation View should be used when an application has three to five top-level destinations. We can use layout_behavior attribute to hide BottomNavigationView on Scroll.

Add the support library to the dependency section.