android bottom navigation bar item selected code example
Example 1: android bottomnavigationview set current item
BottomNavigationView bottomNavigationView;
bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottomNavigationView);
bottomNavigationView.setOnNavigationItemSelectedListener(myNavigationItemListener);
bottomNavigationView.setSelectedItemId(R.id.my_menu_item_id);
Example 2: bottom navigation bar dependency
compile 'com.android.support:design:25.0.0'