frag_dynamic_info.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:orientation="vertical"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@drawable/shape_circle"
  8. android:clipToOutline="true">
  9. <!--顶部相机信息-->
  10. <LinearLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="@dimen/cr_30_dp"
  13. android:orientation="horizontal">
  14. <LinearLayout
  15. style="@style/dji_camera_component">
  16. <LinearLayout
  17. style="@style/dji_top_component_lbl_panel">
  18. <TextView
  19. style="@style/dji_top_text_title_style"
  20. android:text="@string/title_camera_iso"/>
  21. <TextView
  22. style="@style/dji_top_text_value_style"
  23. android:text="@string/default_value"
  24. android:id="@+id/camera_iso"/>
  25. </LinearLayout>
  26. </LinearLayout>
  27. <LinearLayout
  28. style="@style/dji_camera_component"
  29. android:layout_width="@dimen/cr_60_dp">
  30. <LinearLayout
  31. style="@style/dji_top_component_lbl_panel">
  32. <TextView
  33. style="@style/dji_top_text_title_style"
  34. android:text="@string/title_camera_speed"/>
  35. <TextView
  36. style="@style/dji_top_text_value_style"
  37. android:text="@string/default_value"
  38. android:id="@+id/camera_speed"/>
  39. </LinearLayout>
  40. </LinearLayout>
  41. <LinearLayout
  42. style="@style/dji_camera_component">
  43. <LinearLayout
  44. style="@style/dji_top_component_lbl_panel">
  45. <TextView
  46. style="@style/dji_top_text_title_style"
  47. android:text="@string/title_camera_focal"/>
  48. <TextView
  49. style="@style/dji_top_text_value_style"
  50. android:text="@string/default_value"
  51. android:id="@+id/camera_focal"/>
  52. </LinearLayout>
  53. </LinearLayout>
  54. <LinearLayout
  55. style="@style/dji_camera_component">
  56. <LinearLayout
  57. style="@style/dji_top_component_lbl_panel">
  58. <TextView
  59. style="@style/dji_top_text_title_style"
  60. android:text="@string/title_camera_ev"/>
  61. <TextView
  62. style="@style/dji_top_text_value_style"
  63. android:text="@string/default_value"
  64. android:id="@+id/camera_ev"/>
  65. </LinearLayout>
  66. </LinearLayout>
  67. <View style="@style/view_split_v1"/>
  68. <LinearLayout
  69. style="@style/dji_camera_component"
  70. android:layout_width="@dimen/cr_80_dp">
  71. <RelativeLayout
  72. style="@style/dji_top_component_panel">
  73. <ImageView
  74. style="@style/dji_top_component_img"
  75. android:src="@drawable/sd_zpsl"
  76. android:contentDescription="@string/des_head"/>
  77. <TextView
  78. android:layout_width="@dimen/cr_10_dp"
  79. android:layout_height="@dimen/cr_10_dp"
  80. android:background="@drawable/shape_back_circle"
  81. android:id="@+id/camera_model_photo"
  82. android:visibility="gone"/>
  83. </RelativeLayout>
  84. <LinearLayout
  85. style="@style/dji_top_component_lbl_panel">
  86. <TextView
  87. style="@style/dji_top_text_title_style"
  88. android:text="@string/title_camera_photo"/>
  89. <TextView
  90. style="@style/dji_top_text_value_style"
  91. android:text="@string/default_value"
  92. android:id="@+id/sd_photo_count"/>
  93. </LinearLayout>
  94. </LinearLayout>
  95. <LinearLayout
  96. style="@style/dji_camera_component"
  97. android:layout_width="@dimen/cr_80_dp">
  98. <RelativeLayout
  99. style="@style/dji_top_component_panel">
  100. <ImageView
  101. style="@style/dji_top_component_img"
  102. android:src="@drawable/sd_spsj"
  103. android:contentDescription="@string/des_head"/>
  104. <TextView
  105. android:layout_width="@dimen/cr_10_dp"
  106. android:layout_height="@dimen/cr_10_dp"
  107. android:background="@drawable/shape_back_circle"
  108. android:id="@+id/camera_model_video"
  109. android:visibility="gone"/>
  110. </RelativeLayout>
  111. <LinearLayout
  112. style="@style/dji_top_component_lbl_panel">
  113. <TextView
  114. style="@style/dji_top_text_title_style"
  115. android:text="@string/title_camera_video"/>
  116. <TextView
  117. style="@style/dji_top_text_value_style"
  118. android:text="@string/value_camera_video"
  119. android:id="@+id/sd_video_time"/>
  120. </LinearLayout>
  121. </LinearLayout>
  122. <View style="@style/view_split_v1"/>
  123. <LinearLayout
  124. style="@style/dji_camera_component"
  125. android:layout_width="0dp"
  126. android:layout_weight="1">
  127. <LinearLayout
  128. style="@style/dji_top_component_lbl_panel">
  129. <TextView
  130. style="@style/dji_top_text_title_style"
  131. android:text="@string/title_login_dji"/>
  132. <TextView
  133. style="@style/dji_top_text_value_style"
  134. android:text="@string/default_value"
  135. android:id="@+id/dji_login"/>
  136. </LinearLayout>
  137. </LinearLayout>
  138. </LinearLayout>
  139. <View style="@style/view_split_h1"/>
  140. <LinearLayout
  141. android:layout_width="match_parent"
  142. android:layout_height="0dp"
  143. android:layout_weight="1">
  144. <!--飞行器方位-->
  145. <LinearLayout
  146. android:layout_width="@dimen/cr_80_dp"
  147. android:layout_height="match_parent"
  148. android:layout_margin="@dimen/common_margin">
  149. <com.cr.widget.CrCompassWidget
  150. android:layout_width="match_parent"
  151. android:layout_height="match_parent"/>
  152. </LinearLayout>
  153. <View style="@style/view_split_v1"/>
  154. <LinearLayout
  155. android:layout_width="0dp"
  156. android:layout_height="match_parent"
  157. android:layout_weight="1"
  158. android:orientation="vertical">
  159. <!--速度 相对行高 返航距离-->
  160. <LinearLayout
  161. android:layout_width="match_parent"
  162. android:layout_height="0dp"
  163. android:layout_weight="1">
  164. <LinearLayout
  165. android:layout_width="@dimen/cr_70_dp"
  166. android:layout_height="match_parent"
  167. android:layout_margin="@dimen/common_margin">
  168. <com.cr.widget.CrSpeedWidget
  169. android:layout_width="match_parent"
  170. android:layout_height="match_parent"
  171. app:speedProgress="0"
  172. app:speedTitle="@string/speed_x"
  173. android:id="@+id/speed_x"/>
  174. </LinearLayout>
  175. <LinearLayout
  176. android:layout_width="@dimen/cr_70_dp"
  177. android:layout_height="match_parent"
  178. android:layout_margin="@dimen/common_margin">
  179. <com.cr.widget.CrSpeedWidget
  180. android:layout_width="match_parent"
  181. android:layout_height="match_parent"
  182. app:speedProgress="0"
  183. app:speedTitle="@string/speed_y"
  184. android:id="@+id/speed_y"/>
  185. </LinearLayout>
  186. <LinearLayout
  187. android:layout_width="@dimen/cr_70_dp"
  188. android:layout_height="match_parent"
  189. android:layout_margin="@dimen/common_margin">
  190. <com.cr.widget.CrSpeedWidget
  191. android:layout_width="match_parent"
  192. android:layout_height="match_parent"
  193. app:speedProgress="0"
  194. app:speedTitle="@string/speed_z"
  195. android:id="@+id/speed_z"/>
  196. </LinearLayout>
  197. <View style="@style/view_split_v1"/>
  198. <!-- 相对高度 起飞海拔 -->
  199. <LinearLayout
  200. android:layout_width="0dp"
  201. android:layout_height="match_parent"
  202. android:layout_weight="1"
  203. android:orientation="vertical">
  204. <TextView
  205. style="@style/lbl_title_common_match"
  206. android:text="@string/title_takeoff_altitude"/>
  207. <TextView
  208. style="@style/lbl_value_common_match"
  209. android:text="@string/default_value"
  210. android:id="@+id/lbl_takeoff_altitude"/>
  211. <TextView
  212. style="@style/lbl_title_common_match"
  213. android:text="@string/title_altitude"/>
  214. <TextView
  215. style="@style/lbl_value_common_match"
  216. android:text="@string/default_value"
  217. android:id="@+id/lbl_altitude"/>
  218. </LinearLayout>
  219. <View style="@style/view_split_v1"/>
  220. <!-- 返航高度 返航距离 -->
  221. <LinearLayout
  222. android:layout_width="0dp"
  223. android:layout_height="match_parent"
  224. android:layout_weight="1"
  225. android:orientation="vertical">
  226. <TextView
  227. style="@style/lbl_title_common_match"
  228. android:text="@string/title_go_home_altitude"/>
  229. <TextView
  230. style="@style/lbl_value_common_match"
  231. android:text="@string/default_value"
  232. android:id="@+id/lbl_home_altitude"/>
  233. <TextView
  234. style="@style/lbl_title_common_match"
  235. android:text="@string/title_go_home_distance"/>
  236. <TextView
  237. style="@style/lbl_value_common_match"
  238. android:text="@string/default_value"
  239. android:id="@+id/lbl_home_distance"/>
  240. </LinearLayout>
  241. </LinearLayout>
  242. <View style="@style/view_split_h1"/>
  243. <!--消息-->
  244. <TextView
  245. android:layout_width="match_parent"
  246. android:layout_height="@dimen/cr_16_dp"
  247. android:text="@string/default_value"
  248. android:textColor="@color/white"
  249. android:textSize="@dimen/sp_10"
  250. android:gravity="center"
  251. android:id="@+id/lbl_message"/>
  252. </LinearLayout>
  253. </LinearLayout>
  254. </LinearLayout>