New navigation component from arch with nested navigation graph

后端 未结 7 1163
栀梦
栀梦 2020-12-07 11:26

I have one case and wish to implement it by arch navigation component. For example I have 2 Nav Graphs (main and nested). Can I call main graph from nested and how?

7条回答
  •  执念已碎
    2020-12-07 11:54

    Same problem, all examples found on the web iterate over the basic setup. I have an nav graph in main activity which starts with login fragment, after login goes to main fragment witch has another nav graph with bottom navigation view. The problem is that the main fragment is tied to main activity nav graph. I think only the fragments inside the main fragment can use the main fragment nav graph.

提交回复
热议问题