标签: android android-jetpack android-viewmodel android-jetpack-navigation
具有NavigationComponents的Android,并在共享的(活动/ NavGraph范围内的)ViewModel和片段ViewModel之间进行通信。
您将如何实现?
编辑: 与此处的通信相同,但是DetailFragment具有自己的ViewModel
https://developer.android.com/topic/libraries/architecture/viewmodel#sharing