nav_graph.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. <action
  22. android:id="@+id/action_mainFragment_to_optionsFragment"
  23. app:destination="@id/optionsFragment" />
  24. </fragment>
  25. <fragment
  26. android:id="@+id/settingsFragment"
  27. android:name="com.sduduzog.slimlauncher.ui.main.settings.SettingsFragment"
  28. android:label="fragment_settings"
  29. tools:layout="@layout/settings_fragment">
  30. <action
  31. android:id="@+id/action_openAppsFragment"
  32. app:destination="@+id/appsFragment" />
  33. </fragment>
  34. <fragment
  35. android:id="@+id/appsFragment"
  36. android:name="com.sduduzog.slimlauncher.ui.main.settings.AppsFragment"
  37. android:label="fragment_apps_list"
  38. tools:layout="@layout/apps_fragment" />
  39. <fragment
  40. android:id="@+id/aboutFragment"
  41. android:name="com.sduduzog.slimlauncher.ui.main.AboutFragment"
  42. android:label="fragment_about"
  43. tools:layout="@layout/about_fragment" />
  44. <fragment
  45. android:id="@+id/setupFragment"
  46. android:name="com.sduduzog.slimlauncher.ui.main.setup.SetupFragment"
  47. android:label="setup_fragment"
  48. tools:layout="@layout/setup_fragment">
  49. <action
  50. android:id="@+id/action_setupFragment_to_mainFragment2"
  51. app:destination="@id/mainFragment" />
  52. </fragment>
  53. <fragment
  54. android:id="@+id/notesListFragment"
  55. android:name="com.sduduzog.slimlauncher.ui.main.notes.NotesListFragment"
  56. android:label="notes_list_fragment"
  57. tools:layout="@layout/notes_list_fragment">
  58. <action
  59. android:id="@+id/action_openNoteFragment"
  60. app:destination="@id/noteFragment" />
  61. </fragment>
  62. <fragment
  63. android:id="@+id/noteFragment"
  64. android:name="com.sduduzog.slimlauncher.ui.main.notes.NoteFragment"
  65. android:label="note_fragment"
  66. tools:layout="@layout/note_fragment" />
  67. <fragment
  68. android:id="@+id/optionsFragment"
  69. android:name="com.sduduzog.slimlauncher.ui.options.OptionsFragment"
  70. android:label="options_fragment"
  71. tools:layout="@layout/options_fragment" />
  72. </navigation>