app/src/main/res/navigation/nav_graph.xml
<?xml version="1.0" encoding="utf-8"?>
<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/nav_graph"
app:startDestination="@id/loginFragment">
<fragment
android:id="@+id/MapsFragment"
android:name="com.github.factotum_sdp.factotum.ui.maps.MapsFragment"
android:label="@string/maps_fragment_label"
tools:layout="@layout/fragment_maps">
</fragment>
<fragment
android:id="@+id/roadBookFragment"
android:name="com.github.factotum_sdp.factotum.ui.roadbook.RoadBookFragment"
android:label="Roadbook"
tools:layout="@layout/fragment_roadbook">
<action
android:id="@+id/action_roadBookFragment_to_DRecordDetailsFragment"
app:destination="@id/dRecordDetailsFragment" />
<action
android:id="@+id/action_roadBookFragment_to_BagFragment"
app:destination="@id/bagFragment"/>
</fragment>
<fragment
android:id="@+id/dRecordDetailsFragment"
android:name="com.github.factotum_sdp.factotum.ui.roadbook.DRecordDetailsFragment"
android:label="Record details"
tools:layout="@layout/fragment_drecord_details" >
<action
android:id="@+id/action_dRecordDetailsFragment_to_MapsFragment"
app:destination="@id/MapsFragment" />
<action
android:id="@+id/action_dRecordDetailsFragment_to_contactCreationFragment"
app:destination="@id/contactCreationFragment" />
</fragment>
<fragment
android:id="@+id/directoryFragment"
android:name="com.github.factotum_sdp.factotum.ui.directory.DirectoryFragment"
android:label="Directory"
tools:layout="@layout/fragment_directory">
<action
android:id="@+id/action_directoryFragment_to_contactDetailsFragment2"
app:destination="@id/contactDetailsFragment2" />
<action
android:id="@+id/action_directoryFragment_to_contactCreationFragment"
app:destination="@id/contactCreationFragment" />
</fragment>
<fragment
android:id="@+id/mapsFragment"
android:name="com.github.factotum_sdp.factotum.ui.maps.MapsFragment"
android:label="fragment_maps"
tools:layout="@layout/fragment_maps" />
<fragment
android:id="@+id/loginFragment"
android:name="com.github.factotum_sdp.factotum.ui.login.LoginFragment"
android:label="Login"
tools:layout="@layout/fragment_login">
<action
android:id="@+id/action_loginFragment_to_roadBookFragment2"
app:destination="@id/roadBookFragment" />
<action
android:id="@+id/action_loginFragment_to_signUpFragment"
app:destination="@id/signUpFragment" />
</fragment>
<fragment
android:id="@+id/signUpFragment"
android:name="com.github.factotum_sdp.factotum.ui.signup.SignUpFragment"
android:label="Sign Up"
tools:layout="@layout/fragment_signup">
<action
android:id="@+id/action_signUpFragment_to_loginFragment"
app:destination="@id/loginFragment" />
</fragment>
<fragment
android:id="@+id/contactDetailsFragment2"
android:name="com.github.factotum_sdp.factotum.ui.directory.ContactDetailsFragment"
android:label="ContactDetailsFragment">
<action
android:id="@+id/action_contactDetailsFragment2_to_directoryFragment"
app:destination="@id/directoryFragment" />
<action
android:id="@+id/action_contactDetailsFragment2_to_contactCreationFragment"
app:destination="@id/contactCreationFragment" />
<action
android:id="@+id/action_contactDetailsFragment2_to_MapsFragment"
app:destination="@id/MapsFragment" />
</fragment>
<fragment
android:id="@+id/contactCreationFragment"
android:name="com.github.factotum_sdp.factotum.ui.directory.ContactCreationFragment"
android:label="contact_creation">
<action
android:id="@+id/action_contactCreation_to_directoryFragment"
app:destination="@id/directoryFragment" />
<action
android:id="@+id/action_contactCreationFragment_to_contactDetailsFragment2"
app:destination="@id/contactDetailsFragment2" />
</fragment>
<fragment
android:id="@+id/displayFragment"
android:name="com.github.factotum_sdp.factotum.ui.display.DisplayFragment"
android:label="DisplayFragment"
tools:layout="@layout/fragment_display" />
<fragment
android:id="@+id/settingsFragment"
android:name="com.github.factotum_sdp.factotum.ui.settings.SettingsFragment"
android:label="SettingsFragment"
tools:layout="@layout/fragment_settings" />
<fragment
android:id="@+id/bagFragment"
android:name="com.github.factotum_sdp.factotum.ui.bag.BagFragment"
android:label="Bag"
tools:layout="@layout/fragment_bag" />
<fragment
android:id="@+id/bossMapFragment"
android:name="com.github.factotum_sdp.factotum.ui.maps.BossMapFragment"
android:label="BossMapFragment"
tools:layout="@layout/fragment_boss_map" >
<action
android:id="@+id/action_bossMapFragment_to_photoProofRecapFragment"
app:destination="@id/photoProofRecapFragment" />
<action
android:id="@+id/action_bossMapFragment_to_deliveryHistoryFragment"
app:destination="@id/deliveryHistoryFragment" />
</fragment>
<fragment
android:id="@+id/photoProofRecapFragment"
android:name="com.github.factotum_sdp.factotum.ui.maps.PhotoProofRecapFragment"
android:label="fragment_photo_proof_recap"
tools:layout="@layout/fragment_photo_proof_recap" />
<fragment
android:id="@+id/deliveryHistoryFragment"
android:name="com.github.factotum_sdp.factotum.ui.bossmap.DeliveryHistoryFragment"
android:label="fragment_delivery_history_list"
tools:layout="@layout/fragment_delivery_history_list" />
<fragment
android:id="@+id/pictureFragment"
android:name="com.github.factotum_sdp.factotum.ui.picture.PictureFragment"
android:label="PictureFragment"
tools:layout="@layout/fragment_picture" >
</fragment>
</navigation>