📜  活动没有在 fragmentcontainerview 上设置导航控制器 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:51.654000             🧑  作者: Mango

代码示例1
val navHostFragment = supportFragmentManager
    .findFragmentById(R.id.my_nav_host_fragment) as NavHostFragment
val navController = navHostFragment.navController