Archie
07/27/2020, 9:40 AM<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
<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.