nav_graph.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <navigation xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:id="@+id/nav_graph"
  6. app:startDestination="@id/setupFragment">
  7. <fragment
  8. android:id="@+id/mainFragment"
  9. android:name="com.sduduzog.slimlauncher.ui.main.MainFragment"
  10. android:label="main_fragment"
  11. tools:layout="@layout/main_fragment">
  12. <action
  13. android:id="@+id/action_mainFragment_to_notesListFragment"
  14. app:destination="@id/notesListFragment" />
  15. <action
  16. android:id="@+id/action_mainFragment_to_settingsFragment"
  17. app:destination="@id/settingsFragment" />
  18. <action
  19. android:id="@+id/action_mainFragment_to_aboutFragment"
  20. app:destination="@id/aboutFragment" />
  21. </fragment>
  22. <fragment
  23. android:id="@+id/settingsFragment"
  24. android:name="com.sduduzog.slimlauncher.ui.main.settings.SettingsFragment"
  25. android:label="fragment_settings"
  26. tools:layout="@layout/settings_fragment">
  27. <action
  28. android:id="@+id/action_openAppsFragment"
  29. app:destination="@+id/appsFragment" />
  30. </fragment>
  31. <fragment
  32. android:id="@+id/appsFragment"
  33. android:name="com.sduduzog.slimlauncher.ui.main.settings.AppsFragment"
  34. android:label="fragment_apps_list"
  35. tools:layout="@layout/apps_fragment" />
  36. <fragment
  37. android:id="@+id/aboutFragment"
  38. android:name="com.sduduzog.slimlauncher.ui.main.AboutFragment"
  39. android:label="fragment_about"
  40. tools:layout="@layout/about_fragment" />
  41. <fragment
  42. android:id="@+id/setupFragment"
  43. android:name="com.sduduzog.slimlauncher.ui.main.setup.SetupFragment"
  44. android:label="setup_fragment"
  45. tools:layout="@layout/setup_fragment">
  46. <action
  47. android:id="@+id/action_setupFragment_to_mainFragment2"
  48. app:destination="@id/mainFragment" />
  49. </fragment>
  50. <fragment
  51. android:id="@+id/notesListFragment"
  52. android:name="com.sduduzog.slimlauncher.ui.main.notes.NotesListFragment"
  53. android:label="notes_list_fragment"
  54. tools:layout="@layout/notes_list_fragment">
  55. <action
  56. android:id="@+id/action_openNoteFragment"
  57. app:destination="@id/noteFragment" />
  58. </fragment>
  59. <fragment
  60. android:id="@+id/noteFragment"
  61. android:name="com.sduduzog.slimlauncher.ui.main.notes.NoteFragment"
  62. android:label="note_fragment"
  63. tools:layout="@layout/note_fragment" />
  64. </navigation>