Bottom-Nav-Bar
Easily add four tabbed bottom navigation bar in your app.
This library aids in adding four tabs in Bottom Navigation Bar, as easily and fast as possible. Th result looks like as it is commonly found in most of the apps, like Quora and others.
Difference from Official Bottom Navigation View
- This library is significantly different from what Google has provided for Android Developers. The official Bottom Navigation View from Google doesn't show text when it has 4 tabs.
- this library helps you add icons and texts with four bottom bars very easily and efficiently, where all stays visisble all the time, just like this one here:
Features
- Easily add four tabbed bottom navigation bar with minimal code
- changes color based on accent
Installation
Add this in your app's build.gradle file:
compile 'me.riddhimanadib.bottom-nav-bar:bottom-nav-bar:1.0.1'
How to use
- Create four fragments (fragment with appcompat v4) with layouts and method to create new instance.
- Make your activity extend BottomBarHolderActivity
- Clear out setContentView() method and add the following:
- Now build and run!!
Change accent color
If you want to change the colors, just override the colors in your colors.xml file: