【发布时间】:2020-12-03 02:18:44
【问题描述】:
如何将参数传递给嵌套的导航架构组件图?
假设我构建导航图以从FragmentA --> Nested 导航,其中Nested 包含FragmentB --> FragmentC...
如果这是一个纯粹的FragmentA --> FragmentB... 图表,我会使用FragmentADirections.actionFragmentAToFragmentB(argument = foo) 设置导航。但是,只要您将B --> C 转换为Nested,该操作就需要零参数...
那我该怎么办?
【问题讨论】:
标签: android android-architecture-components android-architecture-navigation