in java/app/app/src/main/java/com/example/app/HomeActivity.java [38:68]
private void navigationItemSelected(MenuItem item){
switch (item.getItemId()) {
case R.id.bottom_navigation_search:
// Begin the transaction
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
// Replace the contents of the container with the new fragment
ft.replace(R.id.frame_layout, new DashboardFragment());
// or ft.add(R.id.your_placeholder, new ABCFragment());
// Complete the changes added above
ft.commit();
break;
case R.id.ic_qr_code:
break;
case R.id.bottom_navigation_profile:
FragmentTransaction ft3 = getSupportFragmentManager().beginTransaction();
ft3.replace(R.id.frame_layout, new UserDataFragment());
ft3.commit();
break;
case R.id.bottom_navigation_settings:
break;
}
}