Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Last active January 4, 2017 07:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/20528e0b44d762cb8dc33f912038f532 to your computer and use it in GitHub Desktop.
Save hitherejoe/20528e0b44d762cb8dc33f912038f532 to your computer and use it in GitHub Desktop.
BottomNavigationView bottomNavigationView = (BottomNavigationView)
findViewById(R.id.bottom_navigation);
bottomNavigationView.setOnNavigationItemSelectedListener(
new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {
switch (item.getItemId()) {
case R.id.action_favorites:
case R.id.action_schedules:
case R.id.action_music:
}
return true;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment