android / architecture-components-samples

Samples for Android Architecture Components.
https://d.android.com/arch
Apache License 2.0
23.36k stars 8.28k forks source link

How to use navigation to jump between different Graphs? #1042

Closed gkj17 closed 2 years ago

gkj17 commented 2 years ago

/* Remove this comment

Reporting an issue with the Architecture Components or the samples?

Question about Architecture Components?

If you want to ask how to do something, or to understand why something isn't working the way you expect it to use Stack Overflow. Post your questions using these tags:

Bug report or feature request for Architecture Components?

If you find an issue with the Architecture Components libraries or consider that a feature is missing, report it using the Google issue tracker: https://issuetracker.google.com/issues/new?component=197448&template=878802

Before filing a new issue, please check if it is listed in the Release Notes or reported in the issues list.

Issue with the samples?

Please add the sample name ("all", "GithubBrowserSample", "BasicRxJavaSampleKotlin", etc.) and include it in the title if it applies.

*/

  1. How to jump from fragmentA in Graph1 to fragmentC in Graph2 directly?

  2. in Graph2, fragmentB can jump to fragmentC. but if after jumping from fragmentA in Graph1 to fragmentB in Graph2, then this is fragmentB can't jump to fragmentC, what should I do?

涂鸦_src=http___clubimg club vmall com_data_attachment_forum_202001_13_0024004ec50dgsopoing6b jpg refer=http___clubimg club vmall

kartik0198 commented 2 years ago

Whats the solution? @gkj17