I\'m working with a simple app with Bottom Navigation View. I have 3 fragment with text, and i want to start their when i select a item in Botton Navigation, but i don\'t kn
I would just add, if you wanted to use your BottomNavigationView.OnNavigationItemSelectedListener()to select your start fragment you can use the setSelectedItemId() e.g. :
Replace 'R.id.navigation_home' with your own start fragment.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
BottomNavigationView navigation = (BottomNavigationView)
findViewById(R.id.navigation);
navigation.setOnNavigationItemSelectedListener(mOnNavigationItemSelectedListener);
navigation.setSelectedItemId(R.id.navigation_home);
}