Is there a way to keep fragment alive when using BottomNavigationView with new NavController?
I'm trying to use the new navigation component. I use a BottomNavigationView with the navController : NavigationUI.setupWithNavController(bottomNavigation, navController) But when I'm switching fragments, they are each time destroy/create even if they were previously used. Is there a way to keep alive our main fragments link to our BottomNavigationView? Try this. Navigator Create custom navigator. @Navigator.Name("custom_fragment") // Use as custom tag at navigation.xml class CustomNavigator( private val context: Context, private val manager: FragmentManager, private val containerId: Int ) :