BottomNavigation

General

Category
Free
Tag
Menus
License
N/A
Min SDK
16 (Android 4.1 Jelly Bean)
Registered
Mar 24, 2016
Favorites
9
Link
https://github.com/krpiotrek/BottomNavigation
See also
Floating ArcMenu
BottomNavigation
SheetMenu
FanMenu
QuickMenu

Additional

Language
Java
Version
N/A
Created
Mar 19, 2016
Updated
Feb 1, 2017 (Retired)
Owner
Piotr Krystyniak (krpiotrek)
Contributor
Piotr Krystyniak (krpiotrek)
1
Activity
Badge
Generate
Download
Source code
APK file

Advertisement

BottomNavigation

Material design Bottom Navigation implementation

final BottomNavigation navigation = (BottomNavigation) findViewById(R.id.bottom_navigation);

navigation.setOnItemSelectedListener(new BottomNavigation.OnItemSelectedListener() {
    @Override
    public void itemSelected(int id) {
            // Handle screen change
        }
    });

navigation.builder()
    .items(
          new BottomNavigation.NavigationItem(0, getResources().getDrawable(R.drawable.ic_face_white_24dp), "People", Color.parseColor("#7C4DFF")),
          new BottomNavigation.NavigationItem(1, getResources().getDrawable(R.drawable.ic_computer_white_24dp), "Computers", Color.parseColor("#795548")),
          new BottomNavigation.NavigationItem(2, getResources().getDrawable(R.drawable.ic_build_white_24dp), "Tools", Color.parseColor("#03A9F4")))
    .withColorChanges(true)
    .hideOnScroll(true)
    .startingPosition(1)
    .build();

Usage

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    compile 'com.github.krpiotrek:BottomNavigation:library:d6a02f9686'
}

License

The BottomNavigation library is available under the Apache 2.0 License.