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
I you don't want to modify your code. If so, I recommended you to try BottomNavigationViewEx。
You just need replace call a method setCurrentItem(index); and getCurrentItem()。
setCurrentItem(index);
getCurrentItem()