I am using the new android.support.design.widget.BottomNavigationView from the support library. How can I set the current selection from code? I realized, that
android.support.design.widget.BottomNavigationView
To programmatically click on the BottomNavigationBar item you need use:
View view = bottomNavigationView.findViewById(R.id.menu_action_item); view.performClick();
This arranges all the items with their labels correctly.