Accessing graph-scoped ViewModel of child NavHostFragment using by navGraphViewModels
问题 I am using the Navigation Component of Android Jetpack (2.2.0-alpha01). I wish to use a child NavHostFragment nested inside my main NavHostFragment, equipped with its own child nav graph. Please view the following image for context: The child nav host is defined like this inside the fragment that is at the front of the MainNavHost's stack: <fragment android:id="@+id/childNavHostFragment" android:name="androidx.navigation.fragment.NavHostFragment" android:layout_width="match_parent" android