nav_graph.xml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  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/MainFragment">
  7. <!-- 主页面 -->
  8. <fragment
  9. android:id="@+id/MainFragment"
  10. android:name="com.emato.ich.fragment.MainFragment"
  11. android:label="@string/main_fragment_label"
  12. tools:layout="@layout/fragment_main">
  13. <action
  14. android:id="@+id/action_mainFragment_to_sendFragment"
  15. app:destination="@id/SendFragment" />
  16. <action
  17. android:id="@+id/action_mainFragment_to_takeFragment"
  18. app:destination="@id/TakeFragment" />
  19. </fragment>
  20. <!-- 投递页面:投递员登录页面 -->
  21. <fragment
  22. android:id="@+id/SendFragment"
  23. android:name="com.emato.ich.fragment.SendKeyBoardFragment"
  24. android:label="@string/send_fragment_label"
  25. tools:layout="@layout/fragment_send_key_board">
  26. <action
  27. android:id="@+id/action_sendFragment_to_sendMainFragment"
  28. app:destination="@id/SendMainFragment" />
  29. <action
  30. android:id="@+id/action_sendFragment_to_mainFragment"
  31. app:destination="@id/MainFragment" />
  32. </fragment>
  33. <!-- 输入投递信息 -->
  34. <fragment
  35. android:id="@+id/InputInfoKeyBoardFragment"
  36. android:name="com.emato.ich.fragment.InputInfoKeyBoardFragment"
  37. android:label=""
  38. tools:layout="@layout/fragment_input_key_board">
  39. <action
  40. android:id="@+id/action_InputInfoKeyBoardFragment_to_sendInfoConfirmFragment"
  41. app:destination="@id/SendInfoConfirmFragment" />
  42. <action
  43. android:id="@+id/action_InputInfoKeyBoardFragment_to_chooseCabinetFragment"
  44. app:destination="@id/ChooseCabinetFragment"/>
  45. <action
  46. android:id="@+id/action_InputInfoKeyBoardFragment_to_mainFragment"
  47. app:destination="@id/MainFragment"/>
  48. </fragment>
  49. <!-- 取件页面 -->
  50. <fragment
  51. android:id="@+id/TakeFragment"
  52. android:name="com.emato.ich.fragment.TakeFragment"
  53. android:label="@string/take_fragment_label"
  54. tools:layout="@layout/fragment_take">
  55. <action
  56. android:id="@+id/action_takeFragment_to_takeCodeFragment"
  57. app:destination="@id/TakeCodeFragment" />
  58. <action
  59. android:id="@+id/action_takeFragment_to_mainFragment"
  60. app:destination="@id/MainFragment" />
  61. </fragment>
  62. <!-- 输入取件码页面 -->
  63. <fragment
  64. android:id="@+id/TakeCodeFragment"
  65. android:name="com.emato.ich.fragment.TakeCodeFragment"
  66. android:label=""
  67. tools:layout="@layout/fragment_take_code">
  68. <action
  69. android:id="@+id/action_takeCodeFragment_to_takeFragment"
  70. app:destination="@id/TakeFragment"/>
  71. <action
  72. android:id="@+id/action_takeCodeFragment_to_takeSuccessFragment"
  73. app:destination="@id/TakeSuccessFragment"/>
  74. <action
  75. android:id="@+id/action_takeCodeFragment_to_mainFragment"
  76. app:destination="@id/MainFragment"/>
  77. </fragment>
  78. <!-- 选择投递还是异常处理 -->
  79. <fragment
  80. android:id="@+id/SendMainFragment"
  81. android:name="com.emato.ich.fragment.SendMainFragment"
  82. android:label="@string/send_main"
  83. tools:layout="@layout/fragment_send_main">
  84. <action
  85. android:id="@+id/action_sendMainFragment_to_chooseCabinetFragment"
  86. app:destination="@id/ChooseCabinetFragment"/>
  87. <action
  88. android:id="@+id/action_sendMainFragment_to_exceptionFragment"
  89. app:destination="@id/ExceptionFragment"/>
  90. <action
  91. android:id="@+id/action_sendMainFragment_to_sendFragment"
  92. app:destination="@id/SendFragment"/>
  93. <action
  94. android:id="@+id/action_sendMainFragment_to_mainFragment"
  95. app:destination="@id/MainFragment"/>
  96. </fragment>
  97. <!-- 选择柜子类型 -->
  98. <fragment
  99. android:id="@+id/ChooseCabinetFragment"
  100. android:name="com.emato.ich.fragment.ChooseCabinetFragment"
  101. android:label="@string/choose_cabinet"
  102. tools:layout="@layout/fragment_choose_cabinet">
  103. <action
  104. android:id="@+id/action_chooseCabinetFragment_to_InputInfoKeyBoardFragment"
  105. app:destination="@id/InputInfoKeyBoardFragment"/>
  106. <action
  107. android:id="@+id/action_chooseCabinetFragment_to_sendInfoConfirmFragment"
  108. app:destination="@id/SendInfoConfirmFragment"/>
  109. <action
  110. android:id="@+id/action_chooseCabinetFragment_to_exceptionFragment"
  111. app:destination="@id/ExceptionFragment"/>
  112. <action
  113. android:id="@+id/action_chooseCabinetFragment_to_sendMainFragment"
  114. app:destination="@id/SendMainFragment"/>
  115. <action
  116. android:id="@+id/action_chooseCabinetFragment_to_mainFragment"
  117. app:destination="@id/MainFragment"/>
  118. </fragment>
  119. <!-- 常见问题解决页面 -->
  120. <fragment
  121. android:id="@+id/ExceptionFragment"
  122. android:name="com.emato.ich.fragment.ExceptionFragment"
  123. android:label="@string/issue_page"
  124. tools:layout="@layout/fragment_exception">
  125. <action
  126. app:destination="@id/ChooseCabinetFragment"
  127. android:id="@+id/action_exceptionFragment_to_ChooseCabinetFragment"/>
  128. <action
  129. android:id="@+id/actionExceptionFragment_to_mainFragment"
  130. app:destination="@id/MainFragment"/>
  131. <action
  132. android:id="@+id/action_exceptionFragment_to_sendMainFragment"
  133. app:destination="@id/SendMainFragment"/>
  134. <action
  135. android:id="@+id/action_exceptionFragment_to_sendInfoConfirmMainFragment"
  136. app:destination="@id/SendInfoConfirmFragment"/>
  137. <action
  138. android:id="@+id/action_exceptionFragment_to_sendSuccessFragment"
  139. app:destination="@id/SendSuccessFragment"/>
  140. </fragment>
  141. <!-- 投递确认页面 -->
  142. <fragment
  143. android:id="@+id/SendInfoConfirmFragment"
  144. android:name="com.emato.ich.fragment.SendInfoConfirmFragment"
  145. android:label="@string/send_confirm_page"
  146. tools:layout="@layout/fragment_send_info_confirm">
  147. <action
  148. android:id="@+id/action_sendInfoConfirmFragment_to_exceptionFragment"
  149. app:destination="@id/ExceptionFragment"/>
  150. <action
  151. android:id="@+id/action_sendInfoConfirmFragment_to_sendSuccessFragment"
  152. app:destination="@id/SendSuccessFragment"/>
  153. <action
  154. android:id="@+id/action_sendInfoConfirmFragment_to_mainFragment"
  155. app:destination="@id/MainFragment"/>
  156. </fragment>
  157. <!-- 投递成功页 -->
  158. <fragment
  159. android:id="@+id/SendSuccessFragment"
  160. android:name="com.emato.ich.fragment.SendSuccessFragment"
  161. android:label=""
  162. tools:layout="@layout/fragment_send_success">
  163. <action
  164. android:id="@+id/action_sendSuccessFragment_to_chooseCabinetFragment"
  165. app:destination="@id/ChooseCabinetFragment"/>
  166. <action
  167. android:id="@+id/action_sendSuccessFragment_to_mainFragment"
  168. app:destination="@id/MainFragment"/>
  169. </fragment>
  170. <!-- 取件成功提示页 -->
  171. <fragment
  172. android:id="@+id/TakeSuccessFragment"
  173. android:name="com.emato.ich.fragment.TakeSuccessFragment"
  174. android:label=""
  175. tools:layout="@layout/fragment_take_success">
  176. <action
  177. android:id="@+id/action_takeSuccessFragment_to_mainFragment"
  178. app:destination="@id/MainFragment"/>
  179. <action
  180. android:id="@+id/action_takeSuccessFragment_to_takeCodeFragment"
  181. app:destination="@id/TakeCodeFragment"/>
  182. </fragment>
  183. </navigation>