| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,133 @@ |
| 1 |
+<?xml version="1.0" encoding="utf-8"?><!-- |
|
| 2 |
+ ~ Copyright (c) 2023 Samson Achiaga |
|
| 3 |
+ ~ |
|
| 4 |
+ ~ Licensed under the Apache License, Version 2.0 (the "License"); |
|
| 5 |
+ ~ you may not use this file except in compliance with the License. |
|
| 6 |
+ ~ You may obtain a copy of the License at |
|
| 7 |
+ ~ |
|
| 8 |
+ ~ http://www.apache.org/licenses/LICENSE-2.0 |
|
| 9 |
+ ~ |
|
| 10 |
+ ~ Unless required by applicable law or agreed to in writing, software |
|
| 11 |
+ ~ distributed under the License is distributed on an "AS IS" BASIS, |
|
| 12 |
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
| 13 |
+ ~ See the License for the specific language governing permissions and |
|
| 14 |
+ ~ limitations under the License. |
|
| 15 |
+ --> |
|
| 16 |
+ |
|
| 17 |
+<navigation xmlns:android="http://schemas.android.com/apk/res/android" |
|
| 18 |
+ xmlns:app="http://schemas.android.com/apk/res-auto" |
|
| 19 |
+ xmlns:tools="http://schemas.android.com/tools" |
|
| 20 |
+ android:id="@+id/navigation" |
|
| 21 |
+ app:startDestination="@id/onboardingFragment"> |
|
| 22 |
+ |
|
| 23 |
+ <fragment |
|
| 24 |
+ android:id="@+id/homeFragment" |
|
| 25 |
+ android:name="com.certified.audionote.ui.HomeFragment" |
|
| 26 |
+ android:label="HomeFragment" |
|
| 27 |
+ tools:layout="@layout/fragment_home"> |
|
| 28 |
+ <action |
|
| 29 |
+ android:id="@+id/action_homeFragment_to_editNoteFragment" |
|
| 30 |
+ app:destination="@id/editNoteFragment" |
|
| 31 |
+ app:enterAnim="@anim/slide_in" |
|
| 32 |
+ app:exitAnim="@anim/fade_out" |
|
| 33 |
+ app:popEnterAnim="@anim/fade_in" |
|
| 34 |
+ app:popExitAnim="@anim/slide_out" |
|
| 35 |
+ app:popUpTo="@id/homeFragment" |
|
| 36 |
+ app:popUpToInclusive="false" /> |
|
| 37 |
+ <action |
|
| 38 |
+ android:id="@+id/action_homeFragment_to_addNoteFragment" |
|
| 39 |
+ app:destination="@id/addNoteFragment" |
|
| 40 |
+ app:enterAnim="@anim/slide_in" |
|
| 41 |
+ app:exitAnim="@anim/fade_out" |
|
| 42 |
+ app:popEnterAnim="@anim/fade_in" |
|
| 43 |
+ app:popExitAnim="@anim/slide_out" |
|
| 44 |
+ app:popUpTo="@id/homeFragment" |
|
| 45 |
+ app:popUpToInclusive="false" /> |
|
| 46 |
+ <action |
|
| 47 |
+ android:id="@+id/action_homeFragment_to_settingsFragment" |
|
| 48 |
+ app:destination="@id/settingsFragment" |
|
| 49 |
+ app:enterAnim="@anim/slide_in" |
|
| 50 |
+ app:exitAnim="@anim/fade_out" |
|
| 51 |
+ app:popEnterAnim="@anim/fade_in" |
|
| 52 |
+ app:popExitAnim="@anim/slide_out" |
|
| 53 |
+ app:popUpTo="@id/homeFragment" |
|
| 54 |
+ app:popUpToInclusive="false" /> |
|
| 55 |
+ </fragment> |
|
| 56 |
+ <fragment |
|
| 57 |
+ android:id="@+id/editNoteFragment" |
|
| 58 |
+ android:name="com.certified.audionote.ui.EditNoteFragment" |
|
| 59 |
+ android:label="EditNoteFragment" |
|
| 60 |
+ tools:layout="@layout/fragment_edit_note"> |
|
| 61 |
+ <action |
|
| 62 |
+ android:id="@+id/action_editNoteFragment_to_homeFragment" |
|
| 63 |
+ app:destination="@id/homeFragment" |
|
| 64 |
+ app:enterAnim="@anim/fade_in" |
|
| 65 |
+ app:exitAnim="@anim/slide_out" |
|
| 66 |
+ app:popUpTo="@id/homeFragment" |
|
| 67 |
+ app:popUpToInclusive="false" /> |
|
| 68 |
+ <argument |
|
| 69 |
+ android:name="note" |
|
| 70 |
+ app:argType="com.certified.audionote.model.Note" /> |
|
| 71 |
+ </fragment> |
|
| 72 |
+ <fragment |
|
| 73 |
+ android:id="@+id/addNoteFragment" |
|
| 74 |
+ android:name="com.certified.audionote.ui.AddNoteFragment" |
|
| 75 |
+ android:label="AddNoteFragment" |
|
| 76 |
+ tools:layout="@layout/fragment_add_note"> |
|
| 77 |
+ <action |
|
| 78 |
+ android:id="@+id/action_addNoteFragment_to_homeFragment" |
|
| 79 |
+ app:destination="@id/homeFragment" |
|
| 80 |
+ app:enterAnim="@anim/fade_in" |
|
| 81 |
+ app:exitAnim="@anim/slide_out" |
|
| 82 |
+ app:popUpTo="@id/homeFragment" |
|
| 83 |
+ app:popUpToInclusive="false" /> |
|
| 84 |
+ <argument |
|
| 85 |
+ android:name="note" |
|
| 86 |
+ app:argType="com.certified.audionote.model.Note" /> |
|
| 87 |
+ </fragment> |
|
| 88 |
+ <fragment |
|
| 89 |
+ android:id="@+id/settingsFragment" |
|
| 90 |
+ android:name="com.certified.audionote.features.settings.SettingsFragment" |
|
| 91 |
+ android:label="SettingsFragment" |
|
| 92 |
+ tools:layout="@layout/fragment_settings"> |
|
| 93 |
+ <action |
|
| 94 |
+ android:id="@+id/action_settingsFragment_to_homeFragment" |
|
| 95 |
+ app:destination="@id/homeFragment" |
|
| 96 |
+ app:enterAnim="@anim/fade_in" |
|
| 97 |
+ app:exitAnim="@anim/slide_out" |
|
| 98 |
+ app:popUpTo="@id/homeFragment" |
|
| 99 |
+ app:popUpToInclusive="true" /> |
|
| 100 |
+ <action |
|
| 101 |
+ android:id="@+id/action_settingsFragment_to_aboutFragment" |
|
| 102 |
+ app:destination="@id/aboutFragment" |
|
| 103 |
+ app:enterAnim="@anim/slide_in" |
|
| 104 |
+ app:exitAnim="@anim/fade_out" |
|
| 105 |
+ app:popEnterAnim="@anim/fade_in" |
|
| 106 |
+ app:popExitAnim="@anim/slide_out" |
|
| 107 |
+ app:popUpTo="@id/settingsFragment" /> |
|
| 108 |
+ </fragment> |
|
| 109 |
+ <fragment |
|
| 110 |
+ android:id="@+id/aboutFragment" |
|
| 111 |
+ android:name="com.certified.audionote.ui.AboutFragment" |
|
| 112 |
+ android:label="fragment_about" |
|
| 113 |
+ tools:layout="@layout/fragment_about"> |
|
| 114 |
+ <action |
|
| 115 |
+ android:id="@+id/action_aboutFragment_to_settingsFragment" |
|
| 116 |
+ app:destination="@id/settingsFragment" |
|
| 117 |
+ app:enterAnim="@anim/fade_in" |
|
| 118 |
+ app:exitAnim="@anim/slide_out" |
|
| 119 |
+ app:popUpTo="@id/settingsFragment" |
|
| 120 |
+ app:popUpToInclusive="true" /> |
|
| 121 |
+ </fragment> |
|
| 122 |
+ <fragment |
|
| 123 |
+ android:id="@+id/onboardingFragment" |
|
| 124 |
+ android:name="com.certified.audionote.ui.OnboardingFragment" |
|
| 125 |
+ android:label="fragment_onboarding" |
|
| 126 |
+ tools:layout="@layout/fragment_onboarding" > |
|
| 127 |
+ <action |
|
| 128 |
+ android:id="@+id/action_onboardingFragment_to_homeFragment" |
|
| 129 |
+ app:destination="@id/homeFragment" |
|
| 130 |
+ app:popUpTo="@id/navigation" |
|
| 131 |
+ app:popUpToInclusive="true" /> |
|
| 132 |
+ </fragment> |
|
| 133 |
+</navigation> |
|
| 0 | 134 |
\ No newline at end of file |