Whats the suggested way to do Inter-Module Navigat...
# navigation-architecture-component
a
Whats the suggested way to do Inter-Module Navigation? I have a situation like this: Module A contains nav_graph_a.xml
Copy code
<navigation xmlns:android="<http://schemas.android.com/apk/res/android>"
    xmlns:app="<http://schemas.android.com/apk/res-auto>"
    xmlns:tools="<http://schemas.android.com/tools>"
    android:id="@+id/someId">
    ....
    <fragment
        android:id="@+id/someFragmentInModuleA"
        android:name="ModuleAFragment">
        <action
            android:id="@+id/action_to_ModuleBFragment_which_is_in_Module_B"
            app:destination="@id/someFragmentInModuleB"/> // But id dont have a reference to this ID so its red
    </fragment>
    ....
</navigation>
Module B contains nav_graph_b.xml
Copy code
<navigation xmlns:android="<http://schemas.android.com/apk/res/android>"
    xmlns:app="<http://schemas.android.com/apk/res-auto>"
    xmlns:tools="<http://schemas.android.com/tools>"
    android:id="@+id/someId">
    ....
    <fragment
        android:id="@+id/someFragmentInModuleB"
        android:name="ModuleBFragment">
        
    </fragment>
    ....
</navigation>
I can't have ModuleA depende on ModuleB or vice versa... What can you guys suggest? I know there is a
Dynamic Navigation
but I'm not sure if I should use it for my usecase as its advertised as solution for
Dynamic Feature Modules
to which my modules are not.