nav_graph.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  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/SendKeyBoardFragment" />
  16. <action
  17. android:id="@+id/action_mainFragment_to_express_delivery_fragment"
  18. app:destination="@id/ExpressDeliveryFragment" />
  19. <action
  20. android:id="@+id/action_mainFragment_to_courier_fragment"
  21. app:destination="@id/Courier" />
  22. <action
  23. android:id="@+id/action_mainFragment_to_takeFragment"
  24. app:destination="@id/TakeFragment" />
  25. <action
  26. android:id="@+id/action_mainFragment_to_chooseCabinetFragment"
  27. app:destination="@id/ChooseCabinetFragment" />
  28. </fragment>
  29. <!-- 投递页面:投递员登录页面 -->
  30. <fragment
  31. android:id="@+id/SendKeyBoardFragment"
  32. android:name="com.emato.ich.fragment.SendKeyBoardFragment"
  33. android:label="@string/send_fragment_label"
  34. tools:layout="@layout/fragment_send_key_board">
  35. <action
  36. android:id="@+id/action_sendFragment_to_sendMainFragment"
  37. app:destination="@id/SendMainFragment" />
  38. <!-- <action-->
  39. <!-- android:id="@+id/action_sendFragment_to_paymentFragment"-->
  40. <!-- app:destination="@id/PaymentFragment" />-->
  41. <action
  42. android:id="@+id/action_sendFragment_to_collectMaterialsFragment"
  43. app:destination="@id/CollectMaterialsFragment" />
  44. <action
  45. android:id="@+id/action_sendFragment_to_mainFragment"
  46. app:destination="@id/MainFragment" />
  47. </fragment>
  48. <!-- 输入投递信息 -->
  49. <fragment
  50. android:id="@+id/InputInfoKeyBoardFragment"
  51. android:name="com.emato.ich.fragment.InputInfoKeyBoardFragment"
  52. android:label=""
  53. tools:layout="@layout/fragment_input_key_board">
  54. <action
  55. android:id="@+id/action_InputInfoKeyBoardFragment_to_sendInfoConfirmFragment"
  56. app:destination="@id/SendInfoConfirmFragment" />
  57. <action
  58. android:id="@+id/action_InputInfoKeyBoardFragment_to_chooseCabinetFragment"
  59. app:destination="@id/ChooseCabinetFragment"/>
  60. <action
  61. android:id="@+id/action_InputInfoKeyBoardFragment_to_mainFragment"
  62. app:destination="@id/MainFragment"/>
  63. </fragment>
  64. <!-- 我要寄快递页面 -->
  65. <fragment
  66. android:id="@+id/ExpressDeliveryFragment"
  67. android:name="com.emato.ich.fragment.ExpressDeliveryFragment"
  68. android:label="@string/express_Delivery_fragment_label"
  69. tools:layout="@layout/fragment_express_delivery">
  70. <action
  71. android:id="@+id/action_ExpressDeliveryFragment_to_ChooseCabinetFragment"
  72. app:destination="@id/ChooseCabinetFragment" />
  73. <action
  74. android:id="@+id/action_expressDeliveryFragment_to_mainFragment"
  75. app:destination="@id/MainFragment" />
  76. <action
  77. android:id="@+id/action_expressDeliveryFragment_to_sendInfoConfirmFragment"
  78. app:destination="@id/SendInfoConfirmFragment"/>
  79. </fragment>
  80. <!-- 我是快递员页面 -->
  81. <fragment
  82. android:id="@+id/Courier"
  83. android:name="com.emato.ich.fragment.CourierFragment"
  84. android:label="@string/courier_label"
  85. tools:layout="@layout/fragment_courier">
  86. <action
  87. android:id="@+id/action_courierFragment_to_mainFragment"
  88. app:destination="@id/MainFragment" />
  89. <action
  90. android:id="@+id/action_courierFragment_to_sendKeyBoardFragment"
  91. app:destination="@id/SendKeyBoardFragment" />
  92. <!--快点员派件-->
  93. <!-- <action
  94. android:id="@+id/action_courierFragment_to_mainFragment"
  95. app:destination="@id/MainFragment" />-->
  96. <!--揽件按钮-->
  97. <!-- <action
  98. android:id="@+id/action_courierFragment_to_mainFragment"
  99. app:destination="@id/MainFragment" />-->
  100. </fragment>
  101. <!-- 取件页面 -->
  102. <fragment
  103. android:id="@+id/TakeFragment"
  104. android:name="com.emato.ich.fragment.TakeFragment"
  105. android:label="@string/take_fragment_label"
  106. tools:layout="@layout/fragment_take">
  107. <action
  108. android:id="@+id/action_takeFragment_to_takeCodeFragment"
  109. app:destination="@id/TakeCodeFragment" />
  110. <action
  111. android:id="@+id/action_takeFragment_to_mainFragment"
  112. app:destination="@id/MainFragment" />
  113. </fragment>
  114. <!-- 输入取件码页面 -->
  115. <fragment
  116. android:id="@+id/TakeCodeFragment"
  117. android:name="com.emato.ich.fragment.TakeCodeFragment"
  118. android:label=""
  119. tools:layout="@layout/fragment_take_code">
  120. <action
  121. android:id="@+id/action_takeCodeFragment_to_takeFragment"
  122. app:destination="@id/TakeFragment"/>
  123. <action
  124. android:id="@+id/action_takeCodeFragment_to_takeSuccessFragment"
  125. app:destination="@id/TakeSuccessFragment"/>
  126. <action
  127. android:id="@+id/action_takeCodeFragment_to_mainFragment"
  128. app:destination="@id/MainFragment"/>
  129. </fragment>
  130. <!-- 输入运单号揽件页面 -->
  131. <fragment
  132. android:id="@+id/CollectMaterialsFragment"
  133. android:name="com.emato.ich.fragment.CollectMaterialsFragment"
  134. android:label="运单号揽件页面"
  135. tools:layout="@layout/fragment_collect_materials">
  136. <action
  137. android:id="@+id/action_collectMaterialsFragment_to_takeSuccessFragment"
  138. app:destination="@id/TakeSuccessFragment"/>
  139. <action
  140. android:id="@+id/action_collectMaterialsFragment_to_sendInfoConfirmFragment"
  141. app:destination="@id/SendInfoConfirmFragment"/>
  142. <action
  143. android:id="@+id/action_collectMaterialsFragment_to_mainFragment"
  144. app:destination="@id/MainFragment"/>
  145. </fragment>
  146. <!-- 扫码支付页面 -->
  147. <fragment
  148. android:id="@+id/PaymentFragment"
  149. android:name="com.emato.ich.fragment.PaymentFragment"
  150. android:label="扫码支付页面"
  151. tools:layout="@layout/fragment_payment">
  152. <action
  153. android:id="@+id/action_paymentFragment_to_sendSuccess"
  154. app:destination="@id/SendSuccessFragment"/>
  155. <action
  156. android:id="@+id/action_paymentFragment_to_mainFragment"
  157. app:destination="@id/MainFragment"/>
  158. <action
  159. android:id="@+id/action_paymentFragment_to_sendMainFragment"
  160. app:destination="@id/SendMainFragment"/>
  161. <action
  162. android:id="@+id/action_paymentFragment_to_InputInfoKeyBoardFragment"
  163. app:destination="@id/InputInfoKeyBoardFragment"/>
  164. </fragment>
  165. <!-- 选择投递还是异常处理 -->
  166. <fragment
  167. android:id="@+id/SendMainFragment"
  168. android:name="com.emato.ich.fragment.SendMainFragment"
  169. android:label="@string/send_main"
  170. tools:layout="@layout/fragment_send_main">
  171. <action
  172. android:id="@+id/action_sendMainFragment_to_chooseCabinetFragment"
  173. app:destination="@id/ChooseCabinetFragment"/>
  174. <action
  175. android:id="@+id/action_sendMainFragment_to_exceptionFragment"
  176. app:destination="@id/ExceptionFragment"/>
  177. <action
  178. android:id="@+id/action_sendMainFragment_to_sendFragment"
  179. app:destination="@id/SendKeyBoardFragment"/>
  180. <action
  181. android:id="@+id/action_sendMainFragment_to_mainFragment"
  182. app:destination="@id/MainFragment"/>
  183. </fragment>
  184. <!-- 选择柜子类型 -->
  185. <fragment
  186. android:id="@+id/ChooseCabinetFragment"
  187. android:name="com.emato.ich.fragment.ChooseCabinetFragment"
  188. android:label="@string/choose_cabinet"
  189. tools:layout="@layout/fragment_choose_cabinet">
  190. <action
  191. android:id="@+id/action_chooseCabinetFragment_to_InputInfoKeyBoardFragment"
  192. app:destination="@id/InputInfoKeyBoardFragment"/>
  193. <action
  194. android:id="@+id/action_chooseCabinetFragment_to_paymentFragment"
  195. app:destination="@id/PaymentFragment"/>
  196. <action
  197. android:id="@+id/action_chooseCabinetFragment_to_sendInfoConfirmFragment"
  198. app:destination="@id/SendInfoConfirmFragment"/>
  199. <action
  200. android:id="@+id/action_chooseCabinetFragment_to_exceptionFragment"
  201. app:destination="@id/ExceptionFragment"/>
  202. <action
  203. android:id="@+id/action_chooseCabinetFragment_to_sendMainFragment"
  204. app:destination="@id/SendMainFragment"/>
  205. <action
  206. android:id="@+id/action_chooseCabinetFragment_to_expressDeliveryFragment"
  207. app:destination="@id/ExpressDeliveryFragment"/>
  208. <action
  209. android:id="@+id/action_chooseCabinetFragment_to_mainFragment"
  210. app:destination="@id/MainFragment"/>
  211. </fragment>
  212. <!-- 常见问题解决页面 -->
  213. <fragment
  214. android:id="@+id/ExceptionFragment"
  215. android:name="com.emato.ich.fragment.ExceptionFragment"
  216. android:label="@string/issue_page"
  217. tools:layout="@layout/fragment_exception">
  218. <action
  219. app:destination="@id/ChooseCabinetFragment"
  220. android:id="@+id/action_exceptionFragment_to_ChooseCabinetFragment"/>
  221. <action
  222. android:id="@+id/actionExceptionFragment_to_mainFragment"
  223. app:destination="@id/MainFragment"/>
  224. <action
  225. android:id="@+id/action_exceptionFragment_to_sendMainFragment"
  226. app:destination="@id/SendMainFragment"/>
  227. <action
  228. android:id="@+id/action_exceptionFragment_to_sendInfoConfirmMainFragment"
  229. app:destination="@id/SendInfoConfirmFragment"/>
  230. <action
  231. android:id="@+id/action_exceptionFragment_to_sendSuccessFragment"
  232. app:destination="@id/SendSuccessFragment"/>
  233. <action
  234. android:id="@+id/action_InputInfoKeyBoardFragment_to_sendInfoConfirmFragment"
  235. app:destination="@id/SendInfoConfirmFragment" />
  236. </fragment>
  237. <!-- 投递确认页面 -->
  238. <fragment
  239. android:id="@+id/SendInfoConfirmFragment"
  240. android:name="com.emato.ich.fragment.SendInfoConfirmFragment"
  241. android:label="@string/send_confirm_page"
  242. tools:layout="@layout/fragment_send_info_confirm">
  243. <action
  244. android:id="@+id/action_sendInfoConfirmFragment_to_exceptionFragment"
  245. app:destination="@id/ExceptionFragment"/>
  246. <action
  247. android:id="@+id/action_sendInfoConfirmFragment_to_sendSuccessFragment"
  248. app:destination="@id/SendSuccessFragment"/>
  249. <action
  250. android:id="@+id/action_sendInfoConfirmFragment_to_mainFragment"
  251. app:destination="@id/MainFragment"/>
  252. </fragment>
  253. <!-- 投递成功页 -->
  254. <fragment
  255. android:id="@+id/SendSuccessFragment"
  256. android:name="com.emato.ich.fragment.SendSuccessFragment"
  257. android:label=""
  258. tools:layout="@layout/fragment_send_success">
  259. <action
  260. android:id="@+id/action_sendSuccessFragment_to_chooseCabinetFragment"
  261. app:destination="@id/ChooseCabinetFragment"/>
  262. <action
  263. android:id="@+id/action_sendSuccessFragment_to_mainFragment"
  264. app:destination="@id/MainFragment"/>
  265. </fragment>
  266. <!-- 取件成功提示页 -->
  267. <fragment
  268. android:id="@+id/TakeSuccessFragment"
  269. android:name="com.emato.ich.fragment.TakeSuccessFragment"
  270. android:label=""
  271. tools:layout="@layout/fragment_take_success">
  272. <action
  273. android:id="@+id/action_takeSuccessFragment_to_mainFragment"
  274. app:destination="@id/MainFragment"/>
  275. <action
  276. android:id="@+id/action_takeSuccessFragment_to_takeCodeFragment"
  277. app:destination="@id/TakeCodeFragment"/>
  278. <action
  279. android:id="@+id/action_takeSuccessFragment_to_collectMaterialsFragment"
  280. app:destination="@id/CollectMaterialsFragment"/>
  281. </fragment>
  282. </navigation>