android4-7 Exercise 3: Bottom Navigation ===================================== Imports: the chapter's bottom-bar imports plus those of the NavHost example. @Composable fun MainScreen() { val navController = rememberNavController() val tabs = listOf("home", "search", "settings") val backStackEntry by navController.currentBackStackEntryAsState() val current = backStackEntry?.destination?.route Scaffold( bottomBar = { NavigationBar { tabs.forEach { route -> NavigationBarItem( selected = current == route, onClick = { navController.navigate(route) { popUpTo(navController.graph.startDestinationId) { saveState = true } launchSingleTop = true restoreState = true } }, icon = { }, label = { Text(route) } ) } } } ) { innerPadding -> NavHost(navController, startDestination = "home", modifier = Modifier.padding(innerPadding)) { composable("home") { Text("Home tab") } composable("search") { Text("Search tab") } composable("settings") { Text("Settings tab") } } } } Expected: three tabs along the bottom; the selected one is highlighted. saveState = true on the pop-up and restoreState = true on navigate should bring a tab back as you left it (docs name saveState and restoreState; launchSingleTop is general knowledge: it avoids stacking copies of the same tab). Report what you see. The icon slot is empty here; give each item an Icon to see them properly. Code unrun.