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