Bottom Navigation

Additional

Language
Java
Version
1.1.7 (Dec 13, 2018)
Created
Aug 16, 2017
Updated
Jan 8, 2021 (Retired)
Owner
Harry Le (harrylefit)
Contributors
Harry Le (harrylefit)
Daniel Tigse (danieltigse)
Long Le - TEQ (longle-teq)
3
Activity
Badge
Generate
Download
Source code

Eazy Bottom Navigation

This library allows you to show bottom navigation quickly and simply

Usages

  • Add Menu (Two ways)
    • From code: BottomNavigation.setMenu(R.menu.nav)
    • In xml: app:resMenu="@menu/nav"
  • Setup with viewpager : BottomNavigation.setupWithViewPager(ViewPager)
  • Handle listener on navigation : BottomNavigation.setOnNavigationListener(listener)
  • Show Navigation : BottomNavigation.show()
  • Hide Navigation : BottomNavigation.hide()
  • Show Navigation with animation : Coming soon
  • Hide Navigation with animation : Coming soon
  • Update notification for tab : BottomNavigation.updateNotification(index,notificationCount)
  • Disable tabs : BottomNavigation.disableTabs(indexArray)
  • Active tabs : BottomNavigation.activeTabs(indexArray)
  • Disable all tab : BottomNavigation.disableAllTabs()
  • Active all tab : BottomNavigation.activeAllTabs()
repositories {
    maven {
        url "https://jitpack.io"
    }
}
Avoiding wrong tab when activity was restarted.
    override fun onSaveInstanceState(outState: Bundle?) {
        super.onSaveInstanceState(outState)
        nav.onSaveInstanceStateView(outState)
    }

    override fun onRestoreInstanceState(savedInstanceState: Bundle?) {
        super.onRestoreInstanceState(savedInstanceState)
        nav.onRestoreInstanceStateView(savedInstanceState)
    }

Download

 implementation 'com.github.harrylefit:bottomnavigation:1.1.7'

Apache License, Version 2.0

Copyright (C) 2018, Harry Le

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.