nav_main.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?xml version="1.0" encoding="utf-8"?><!--
  2. ~ Copyright (C) 2018 Drake, Inc.
  3. ~
  4. ~ Licensed under the Apache License, Version 2.0 (the "License");
  5. ~ you may not use this file except in compliance with the License.
  6. ~ You may obtain a copy of the License at
  7. ~
  8. ~ http://www.apache.org/licenses/LICENSE-2.0
  9. ~
  10. ~ Unless required by applicable law or agreed to in writing, software
  11. ~ distributed under the License is distributed on an "AS IS" BASIS,
  12. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. ~ See the License for the specific language governing permissions and
  14. ~ limitations under the License.
  15. -->
  16. <navigation xmlns:android="http://schemas.android.com/apk/res/android"
  17. xmlns:app="http://schemas.android.com/apk/res-auto"
  18. xmlns:tools="http://schemas.android.com/tools"
  19. android:id="@+id/main"
  20. app:startDestination="@id/request_method">
  21. <fragment
  22. android:id="@+id/async_task"
  23. android:name="com.drake.net.sample.ui.fragment.AsyncTaskFragment"
  24. android:label="异步任务"
  25. tools:layout="@layout/fragment_async_task" />
  26. <fragment
  27. android:id="@+id/auto_dialog"
  28. android:name="com.drake.net.sample.ui.fragment.AutoDialogFragment"
  29. android:label="自动加载框"
  30. tools:layout="@layout/fragment_auto_dialog" />
  31. <fragment
  32. android:id="@+id/coroutine_scope"
  33. android:name="com.drake.net.sample.ui.fragment.CoroutineScopeFragment"
  34. android:label="协程作用域"
  35. tools:layout="@layout/fragment_coroutine_scope" />
  36. <fragment
  37. android:id="@+id/error_handler"
  38. android:name="com.drake.net.sample.ui.fragment.ErrorHandlerFragment"
  39. android:label="错误处理"
  40. tools:layout="@layout/fragment_error_handler" />
  41. <fragment
  42. android:id="@+id/exception_trace"
  43. android:name="com.drake.net.sample.ui.fragment.ExceptionTraceFragment"
  44. android:label="异常追踪"
  45. tools:layout="@layout/fragment_exception_trace" />
  46. <fragment
  47. android:id="@+id/interceptor"
  48. android:name="com.drake.net.sample.ui.fragment.InterceptorFragment"
  49. android:label="拦截器"
  50. tools:layout="@layout/fragment_interceptor" />
  51. <fragment
  52. android:id="@+id/pull_refresh"
  53. android:name="com.drake.net.sample.ui.fragment.PullRefreshFragment"
  54. android:label="自动分页加载"
  55. tools:layout="@layout/fragment_pull_refresh" />
  56. <fragment
  57. android:id="@+id/parallel_network"
  58. android:name="com.drake.net.sample.ui.fragment.ParallelNetworkFragment"
  59. android:label="并发网络任务"
  60. tools:layout="@layout/fragment_parallel_network" />
  61. <fragment
  62. android:id="@+id/push_refresh"
  63. android:name="com.drake.net.sample.ui.fragment.PushRefreshFragment"
  64. android:label="自动下拉刷新"
  65. tools:layout="@layout/fragment_push_refresh" />
  66. <fragment
  67. android:id="@+id/read_cache"
  68. android:name="com.drake.net.sample.ui.fragment.ReadCacheFragment"
  69. android:label="预读缓存"
  70. tools:layout="@layout/fragment_read_cache" />
  71. <fragment
  72. android:id="@+id/request_method"
  73. android:name="com.drake.net.sample.ui.fragment.RequestMethodFragment"
  74. android:label="请求方式"
  75. tools:layout="@layout/fragment_request_method" />
  76. <fragment
  77. android:id="@+id/state_layout"
  78. android:name="com.drake.net.sample.ui.fragment.StateLayoutFragment"
  79. android:label="自动缺省页"
  80. tools:layout="@layout/fragment_state_layout" />
  81. <fragment
  82. android:id="@+id/super_interval"
  83. android:name="com.drake.net.sample.ui.fragment.SuperIntervalFragment"
  84. android:label="超级轮询器"
  85. tools:layout="@layout/fragment_super_interval" />
  86. <fragment
  87. android:id="@+id/switch_dispatcher"
  88. android:name="com.drake.net.sample.ui.fragment.SwitchDispatcherFragment"
  89. android:label="切换调度器"
  90. tools:layout="@layout/fragment_switch_dispatcher" />
  91. <fragment
  92. android:id="@+id/download_file"
  93. android:name="com.drake.net.sample.ui.fragment.DownloadFileFragment"
  94. android:label="下载文件"
  95. tools:layout="@layout/fragment_download_file" />
  96. <fragment
  97. android:id="@+id/upload_file"
  98. android:name="com.drake.net.sample.ui.fragment.UploadFileFragment"
  99. android:label="上传文件"
  100. tools:layout="@layout/fragment_upload_file" />
  101. <fragment
  102. android:id="@+id/fastest"
  103. android:name="com.drake.net.sample.ui.fragment.FastestFragment"
  104. android:label="最快请求"
  105. tools:layout="@layout/fragment_fastest" />
  106. <fragment
  107. android:id="@+id/unique"
  108. android:name="com.drake.net.sample.ui.fragment.UniqueRequestFragment"
  109. android:label="重复请求"
  110. tools:layout="@layout/fragment_unique_request" />
  111. <fragment
  112. android:id="@+id/edit_throttle"
  113. android:name="com.drake.net.sample.ui.fragment.EditDebounceFragment"
  114. android:label="节流阀"
  115. tools:layout="@layout/fragment_edit_debounce" />
  116. <fragment
  117. android:id="@+id/request_callback"
  118. android:name="com.drake.net.sample.ui.fragment.CallbackRequestFragment"
  119. android:label="Callback请求"
  120. tools:layout="@layout/fragment_callback_request" />
  121. <fragment
  122. android:id="@+id/request_sync"
  123. android:name="com.drake.net.sample.ui.fragment.SyncRequestFragment"
  124. android:label="同步请求"
  125. tools:layout="@layout/fragment_sync_request" />
  126. <fragment
  127. android:id="@+id/https"
  128. android:name="com.drake.net.sample.ui.fragment.HttpsCertificateFragment"
  129. android:label="Https证书"
  130. tools:layout="@layout/fragment_https_certificate" />
  131. <fragment
  132. android:id="@+id/view_model"
  133. android:name="com.drake.net.sample.ui.fragment.ViewModelRequestFragment"
  134. android:label="ViewModel" />
  135. <include app:graph="@navigation/nav_converter" />
  136. </navigation>