Open sunnyeverestek opened 2 years ago
NavHostFragment navHostFragment = (NavHostFragment) getSupportFragmentManager().findFragmentById(R.id.base_container);
if (navHostFragment != null) { navController = navHostFragment.getNavController(); NavigationUI.setupWithNavController(viewBind.bottomNav, navController); setSupportActionBar(viewBind.appBar.toolbar); appBarConfiguration = new AppBarConfiguration.Builder(R.id.discoveryFragment,R.id.analyticsFragment ,R.id.feedFragment,R.id.notificationFragment).build(); NavigationUI.setupActionBarWithNavController(this,navController,appBarConfiguration); }
NavHostFragment navHostFragment = (NavHostFragment) getSupportFragmentManager().findFragmentById(R.id.base_container);