nav_graph.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  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.SendFragment"
  24. android:label="@string/send_fragment_label"
  25. tools:layout="@layout/fragment_send">
  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/InputInfoFragment"
  36. android:name="com.emato.ich.fragment.InputInfoFragment"
  37. android:label=""
  38. tools:layout="@layout/fragment_input_info">
  39. <action
  40. android:id="@+id/action_inputInfoFragment_to_sendInfoConfirmFragment"
  41. app:destination="@id/SendInfoConfirmFragment" />
  42. <action
  43. android:id="@+id/action_inputInfoFragment_to_chooseCabinetFragment"
  44. app:destination="@id/ChooseCabinetFragment"/>
  45. </fragment>
  46. <!-- 取件页面 -->
  47. <fragment
  48. android:id="@+id/TakeFragment"
  49. android:name="com.emato.ich.fragment.TakeFragment"
  50. android:label="@string/take_fragment_label"
  51. tools:layout="@layout/fragment_take">
  52. <action
  53. android:id="@+id/action_takeFragment_to_takeCodeFragment"
  54. app:destination="@id/TakeCodeFragment" />
  55. <action
  56. android:id="@+id/action_takeFragment_to_mainFragment"
  57. app:destination="@id/MainFragment" />
  58. </fragment>
  59. <!-- 输入取件码页面 -->
  60. <fragment
  61. android:id="@+id/TakeCodeFragment"
  62. android:name="com.emato.ich.fragment.TakeCodeFragment"
  63. android:label=""
  64. tools:layout="@layout/fragment_take_code">
  65. <action
  66. android:id="@+id/action_takeCodeFragment_to_takeFragment"
  67. app:destination="@id/TakeFragment"/>
  68. <action
  69. android:id="@+id/action_takeCodeFragment_to_takeSuccessFragment"
  70. app:destination="@id/TakeSuccessFragment"/>
  71. </fragment>
  72. <!-- 选择投递还是异常处理 -->
  73. <fragment
  74. android:id="@+id/SendMainFragment"
  75. android:name="com.emato.ich.fragment.SendMainFragment"
  76. android:label="@string/send_main"
  77. tools:layout="@layout/fragment_send_main">
  78. <action
  79. android:id="@+id/action_sendMainFragment_to_chooseCabinetFragment"
  80. app:destination="@id/ChooseCabinetFragment"/>
  81. <action
  82. android:id="@+id/action_sendMainFragment_to_exceptionFragment"
  83. app:destination="@id/ExceptionFragment"/>
  84. <action
  85. android:id="@+id/action_sendMainFragment_to_sendFragment"
  86. app:destination="@id/SendFragment"/>
  87. </fragment>
  88. <!-- 选择柜子类型 -->
  89. <fragment
  90. android:id="@+id/ChooseCabinetFragment"
  91. android:name="com.emato.ich.fragment.ChooseCabinetFragment"
  92. android:label="@string/choose_cabinet"
  93. tools:layout="@layout/fragment_choose_cabinet">
  94. <action
  95. android:id="@+id/action_chooseCabinetFragment_to_inputInfoFragment"
  96. app:destination="@id/InputInfoFragment"/>
  97. <action
  98. android:id="@+id/action_chooseCabinetFragment_to_sendInfoConfirmFragment"
  99. app:destination="@id/SendInfoConfirmFragment"/>
  100. <action
  101. android:id="@+id/action_chooseCabinetFragment_to_exceptionFragment"
  102. app:destination="@id/ExceptionFragment"/>
  103. <action
  104. android:id="@+id/action_chooseCabinetFragment_to_sendMainFragment"
  105. app:destination="@id/SendMainFragment"/>
  106. </fragment>
  107. <!-- 常见问题解决页面 -->
  108. <fragment
  109. android:id="@+id/ExceptionFragment"
  110. android:name="com.emato.ich.fragment.ExceptionFragment"
  111. android:label="@string/issue_page"
  112. tools:layout="@layout/fragment_exception">
  113. <action
  114. app:destination="@id/ChooseCabinetFragment"
  115. android:id="@+id/action_exceptionFragment_to_ChooseCabinetFragment"/>
  116. <action
  117. android:id="@+id/actionExceptionFragment_to_mainFragment"
  118. app:destination="@id/MainFragment"/>
  119. <action
  120. android:id="@+id/action_exceptionFragment_to_sendMainFragment"
  121. app:destination="@id/SendMainFragment"/>
  122. <action
  123. android:id="@+id/action_exceptionFragment_to_sendInfoConfirmMainFragment"
  124. app:destination="@id/SendInfoConfirmFragment"/>
  125. </fragment>
  126. <!-- 投递确认页面 -->
  127. <fragment
  128. android:id="@+id/SendInfoConfirmFragment"
  129. android:name="com.emato.ich.fragment.SendInfoConfirmFragment"
  130. android:label="@string/send_confirm_page"
  131. tools:layout="@layout/fragment_send_info_confirm">
  132. <action
  133. android:id="@+id/action_sendInfoConfirmFragment_to_exceptionFragment"
  134. app:destination="@id/ExceptionFragment"/>
  135. <action
  136. android:id="@+id/action_sendInfoConfirmFragment_to_sendSuccessFragment"
  137. app:destination="@id/SendSuccessFragment"/>
  138. </fragment>
  139. <!-- 投递成功页 -->
  140. <fragment
  141. android:id="@+id/SendSuccessFragment"
  142. android:name="com.emato.ich.fragment.SendSuccessFragment"
  143. android:label=""
  144. tools:layout="@layout/fragment_send_success">
  145. <action
  146. android:id="@+id/action_sendSuccessFragment_to_chooseCabinetFragment"
  147. app:destination="@id/ChooseCabinetFragment"/>
  148. <action
  149. android:id="@+id/action_sendSuccessFragment_to_mainFragment"
  150. app:destination="@id/MainFragment"/>
  151. </fragment>
  152. <!-- 取件成功提示页 -->
  153. <fragment
  154. android:id="@+id/TakeSuccessFragment"
  155. android:name="com.emato.ich.fragment.TakeSuccessFragment"
  156. android:label=""
  157. tools:layout="@layout/fragment_take_success">
  158. <action
  159. android:id="@+id/action_takeSuccessFragment_to_mainFragment"
  160. app:destination="@id/MainFragment"/>
  161. <action
  162. android:id="@+id/action_takeSuccessFragment_to_takeCodeFragment"
  163. app:destination="@id/TakeCodeFragment"/>
  164. </fragment>
  165. </navigation>