Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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"
- android:label="Journal"
- app:startDestination="@id/mainFragment">
- <fragment
- android:id="@+id/mainFragment"
- android:name="com.rapiraapps.android.myapplication.Fragments.Main.MainFragment"
- android:label="Main"
- tools:layout="@layout/fragment_main">
- <!--that his action-->
- <action
- android:id="@+id/action_mainFragment_to_journalFragment"
- app:destination="@id/journalFragment" />
- <action
- android:id="@+id/action_mainFragment_to_addDialogFragment"
- app:destination="@id/addDialogFragment" />
- </fragment>
- <fragment
- android:id="@+id/journalFragment"
- android:name="com.rapiraapps.android.myapplication.Fragments.Journal.JournalFragment"
- android:label="Journal"
- tools:layout="@layout/fragment_journal">
- <action
- android:id="@+id/action_journalFragment_to_mainFragment"
- app:destination="@id/mainFragment" />
- <action
- android:id="@+id/action_journalFragment_to_addDialogFragment"
- app:destination="@id/addDialogFragment" />
- </fragment>
- <dialog
- android:id="@+id/addDialogFragment"
- android:name="com.rapiraapps.android.myapplication.Fragments.Dialog.AddDialogFragment"
- android:label="Dialog" >
- <action
- android:id="@+id/action_addDialogFragment_to_journalFragment"
- app:destination="@id/journalFragment" />
- </dialog>
- </navigation>
Advertisement
Add Comment
Please, Sign In to add comment