Skip to content

This library allows you to show bottom navigation quickly and simply

License

Notifications You must be signed in to change notification settings

harrylefit/bottomnavigation

Repository files navigation

Eazy Bottom Navigation

This library allows you to show bottom navigation quickly and simply

Codacy Badge API Android Arsenal

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:https://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.

About

This library allows you to show bottom navigation quickly and simply

Resources

License

Stars

Watchers

Forks

Packages

No packages published