문제는 SAA로 BottomNavigation에 대한 처리를 어떤 식으로 하면 좋을지에 대한 문제였다. BottomNavigation은 하나의 MainActivity에서 FragmentContainerView에 각 탭이 연결되어있다. 그러나, 상세 페이지로 이동 시 BottomNavigation은 안보이게 처리를 해야했고 다른 페이지에서 hide를 시켜버릴지 아니면 중첩 navigation graph로 처리를 해야할 지 고민을 했다.

아래 코드로 그런 고민을 할 필요가 없었다.

가장 최상위 화면에서만 bottomNavigation을 보이게 처리 할 수 있었다. 물론 BottomNavigation 뿐만 아니라 다른 뷰도 이와 동일하게 처리할 수 있었다.

// AppBar 설정
val appBarConfiguration = AppBarConfiguration(setOf(
    R.id.map_fragment,
    R.id.second_fragment,
    R.id.third_fragment
))

navController.addOnDestinationChangedListener { _, destination, _ ->
    binding.bottomNav.isVisible = appBarConfiguration.topLevelDestinations.contains(destination.id)
}

How to Hide Bottom Bar Nav.. When following single Activity design?