Highlighting a menu item in BottomNavigationView without invoking onNavigationItemSelected method

Viewed 947

I have a BottomNavigationView in my activity with onNavigationItemSelected listener.

I have two questions:

  1. Does setSelectedItemId method invoke the onNavigationItemSelected method? The documentation says this method behaves as if the menu item was tapped, my observation is yes.

  2. If yes, how to highlight a menu item without invoking onNavigationItemSelected?

1 Answers
Related