1

Currently in my app i have BottomNavigationView, that consists for example from 3 menu items, that linked with fragments:

  1. Profile Fragment
  2. Reader Fragment
  3. Bookmarks Fragment

Also i have another fragments (Settings, Edit Profile, etc)

So when i navigate to the fragment that doesn't appear in BottomNavigationView menu i want to reset selection of menu item in BottomNavigationView.

In my code i only have NavController and this method

@Override
public void onFragmentNavigation(int id) {
    navController.navigate(id);
}
Areyana
  • 373
  • 4
  • 17

0 Answers0