fragment_home.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout 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:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@color/shallowblue"
  8. android:orientation="vertical"
  9. android:paddingLeft="@dimen/dp_10"
  10. android:paddingRight="@dimen/dp_10">
  11. <LinearLayout
  12. android:id="@+id/linearLayout3"
  13. android:layout_width="0dp"
  14. android:layout_height="wrap_content"
  15. android:layout_marginBottom="12dp"
  16. android:gravity="center"
  17. app:layout_constraintBottom_toTopOf="@+id/linearLayout4"
  18. app:layout_constraintEnd_toEndOf="parent"
  19. app:layout_constraintStart_toStartOf="parent"
  20. app:layout_constraintTop_toTopOf="parent">
  21. <LinearLayout
  22. android:layout_width="0dp"
  23. android:layout_height="@dimen/dp_55"
  24. android:layout_marginRight="@dimen/dp_7"
  25. android:layout_weight="1"
  26. android:background="@drawable/shape_home_bottom1_rectangle"
  27. android:orientation="vertical"
  28. android:padding="@dimen/dp_7">
  29. <TextView
  30. android:layout_width="wrap_content"
  31. android:layout_height="wrap_content"
  32. android:layout_marginBottom="@dimen/dp_2"
  33. android:text="@string/total_cleaning_times_today"
  34. android:textColor="@color/white"
  35. android:textSize="@dimen/sp_7" />
  36. <TextView
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:text="767W"
  40. android:textColor="@color/white"
  41. android:textSize="@dimen/dp_14" />
  42. </LinearLayout>
  43. <RelativeLayout
  44. android:layout_width="0dp"
  45. android:layout_height="@dimen/dp_55"
  46. android:layout_margin="@dimen/dp_5"
  47. android:layout_weight="1"
  48. android:background="@drawable/shape_home_bottom2_rectangle"
  49. android:orientation="vertical"
  50. android:padding="@dimen/dp_7">
  51. <TextView
  52. android:id="@+id/tv_sum_title"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:text="@string/random_cleaning_times_today"
  56. android:textColor="#939494"
  57. android:textSize="@dimen/sp_7" />
  58. <TextView
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:layout_marginTop="@dimen/dp_13"
  62. android:text="767W"
  63. android:textColor="@color/logo_blue"
  64. android:textSize="@dimen/dp_14" />
  65. <ImageView
  66. android:layout_width="@dimen/dp_35"
  67. android:layout_height="@dimen/dp_35"
  68. android:layout_alignParentRight="true"
  69. android:layout_marginTop="@dimen/dp_10"
  70. android:layout_marginRight="@dimen/dp_5"
  71. android:src="@drawable/random" />
  72. </RelativeLayout>
  73. <RelativeLayout
  74. android:layout_width="0dp"
  75. android:layout_height="@dimen/dp_55"
  76. android:layout_margin="@dimen/dp_5"
  77. android:layout_weight="1"
  78. android:background="@drawable/shape_home_bottom1_rectangle"
  79. android:orientation="vertical"
  80. android:padding="@dimen/dp_7">
  81. <TextView
  82. android:id="@+id/tv_random_title"
  83. android:layout_width="wrap_content"
  84. android:layout_height="wrap_content"
  85. android:text="@string/regular_cleaning_times_today"
  86. android:textColor="@color/white"
  87. android:textSize="@dimen/sp_7" />
  88. <TextView
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:layout_marginTop="@dimen/dp_13"
  92. android:text="767W"
  93. android:textColor="@color/white"
  94. android:textSize="@dimen/dp_14" />
  95. <ImageView
  96. android:layout_width="@dimen/dp_35"
  97. android:layout_height="@dimen/dp_35"
  98. android:layout_alignParentRight="true"
  99. android:layout_marginTop="@dimen/dp_10"
  100. android:layout_marginRight="@dimen/dp_5"
  101. android:src="@drawable/timing" />
  102. </RelativeLayout>
  103. <RelativeLayout
  104. android:layout_width="0dp"
  105. android:layout_height="@dimen/dp_55"
  106. android:layout_marginLeft="@dimen/dp_5"
  107. android:layout_marginTop="@dimen/dp_5"
  108. android:layout_marginBottom="@dimen/dp_5"
  109. android:layout_weight="1"
  110. android:background="@drawable/shape_home_bottom2_rectangle"
  111. android:orientation="vertical"
  112. android:padding="@dimen/dp_7">
  113. <TextView
  114. android:id="@+id/tv_data_title"
  115. android:layout_width="wrap_content"
  116. android:layout_height="wrap_content"
  117. android:layout_marginBottom="@dimen/dp_2"
  118. android:text="2020-04-20"
  119. android:textColor="@color/gray"
  120. android:textSize="@dimen/sp_7" />
  121. <TextView
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:layout_marginTop="@dimen/dp_13"
  125. android:text="10:35"
  126. android:textColor="@color/logo_blue"
  127. android:textSize="@dimen/dp_14" />
  128. <ImageView
  129. android:layout_width="@dimen/dp_35"
  130. android:layout_height="@dimen/dp_35"
  131. android:layout_alignParentRight="true"
  132. android:layout_marginTop="@dimen/dp_10"
  133. android:layout_marginRight="@dimen/dp_5"
  134. android:src="@drawable/time" />
  135. </RelativeLayout>
  136. </LinearLayout>
  137. <LinearLayout
  138. android:id="@+id/linearLayout4"
  139. android:layout_width="0dp"
  140. android:layout_height="0dp"
  141. android:layout_marginBottom="13dp"
  142. android:background="@drawable/shape_home_malfunction_rectangle"
  143. android:padding="@dimen/dp_5"
  144. app:layout_constraintBottom_toTopOf="@+id/linearLayout"
  145. app:layout_constraintEnd_toEndOf="parent"
  146. app:layout_constraintStart_toStartOf="parent"
  147. app:layout_constraintTop_toBottomOf="@+id/linearLayout3">
  148. <TextView
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:text="@string/fault_today"
  152. android:textColor="@color/logo_blue"
  153. android:textSize="@dimen/sp_7" />
  154. <LinearLayout
  155. android:layout_width="match_parent"
  156. android:layout_height="wrap_content"
  157. android:gravity="right"
  158. android:textSize="@dimen/sp_9">
  159. <TextView
  160. android:layout_width="wrap_content"
  161. android:layout_height="wrap_content"
  162. android:layout_marginLeft="@dimen/dp_8"
  163. android:text="@string/untreated"
  164. android:textSize="@dimen/sp_6" />
  165. <TextView
  166. android:layout_width="wrap_content"
  167. android:layout_height="wrap_content"
  168. android:layout_marginLeft="@dimen/dp_5"
  169. android:layout_marginRight="@dimen/dp_5"
  170. android:text="24"
  171. android:textColor="@color/bright_blue"
  172. android:textSize="@dimen/sp_10" />
  173. <TextView
  174. android:layout_width="wrap_content"
  175. android:layout_height="wrap_content"
  176. android:text="@string/a"
  177. android:textSize="@dimen/sp_6" />
  178. <TextView
  179. android:layout_width="wrap_content"
  180. android:layout_height="wrap_content"
  181. android:layout_marginLeft="@dimen/dp_8"
  182. android:text="@string/fault_today"
  183. android:textSize="@dimen/sp_6" />
  184. <TextView
  185. android:layout_width="wrap_content"
  186. android:layout_height="wrap_content"
  187. android:layout_marginLeft="@dimen/dp_5"
  188. android:layout_marginRight="@dimen/dp_5"
  189. android:text="12"
  190. android:textColor="@color/orange"
  191. android:textSize="@dimen/sp_10" />
  192. <TextView
  193. android:layout_width="wrap_content"
  194. android:layout_height="wrap_content"
  195. android:text="@string/a"
  196. android:textSize="@dimen/sp_6" />
  197. <TextView
  198. android:layout_width="wrap_content"
  199. android:layout_height="wrap_content"
  200. android:layout_marginLeft="@dimen/dp_8"
  201. android:text="@string/complete"
  202. android:textSize="@dimen/sp_6" />
  203. <TextView
  204. android:layout_width="wrap_content"
  205. android:layout_height="wrap_content"
  206. android:layout_marginLeft="@dimen/dp_5"
  207. android:layout_marginRight="@dimen/dp_5"
  208. android:text="12"
  209. android:textColor="#385AA8"
  210. android:textSize="@dimen/sp_10" />
  211. <TextView
  212. android:layout_width="wrap_content"
  213. android:layout_height="wrap_content"
  214. android:text="@string/a"
  215. android:textSize="@dimen/sp_6" />
  216. </LinearLayout>
  217. </LinearLayout>
  218. <LinearLayout
  219. android:id="@+id/linearLayout"
  220. android:layout_width="0dp"
  221. android:layout_height="wrap_content"
  222. app:layout_constraintBottom_toBottomOf="parent"
  223. app:layout_constraintEnd_toEndOf="parent"
  224. app:layout_constraintStart_toStartOf="parent"
  225. app:layout_constraintTop_toBottomOf="@+id/linearLayout4">
  226. <LinearLayout
  227. android:layout_width="@dimen/dp_140"
  228. android:layout_height="@dimen/dp_80"
  229. android:layout_marginTop="@dimen/dp_5"
  230. android:layout_marginRight="@dimen/dp_5"
  231. android:layout_marginBottom="@dimen/dp_5"
  232. android:background="@drawable/shape_home_bottom2_rectangle"
  233. android:orientation="vertical"
  234. android:padding="@dimen/dp_7">
  235. <TextView
  236. android:layout_width="wrap_content"
  237. android:layout_height="wrap_content"
  238. android:layout_marginRight="@dimen/dp_40"
  239. android:text="@string/flow_people_today"
  240. android:textColor="#3E5DA8"
  241. android:textSize="@dimen/sp_7" />
  242. <LinearLayout
  243. android:layout_width="match_parent"
  244. android:layout_height="wrap_content"
  245. android:gravity="center"
  246. android:orientation="vertical">
  247. <TextView
  248. android:layout_width="wrap_content"
  249. android:layout_height="wrap_content"
  250. android:layout_marginTop="@dimen/dp_10"
  251. android:text="7677W"
  252. android:textColor="@color/orange"
  253. android:textSize="@dimen/dp_16" />
  254. <TextView
  255. android:layout_width="wrap_content"
  256. android:layout_height="wrap_content"
  257. android:layout_marginTop="@dimen/dp_5"
  258. android:text="@string/traffic_was"
  259. android:textSize="@dimen/sp_6" />
  260. </LinearLayout>
  261. </LinearLayout>
  262. <LinearLayout
  263. android:layout_width="@dimen/dp_200"
  264. android:layout_height="@dimen/dp_80"
  265. android:layout_margin="@dimen/dp_5"
  266. android:background="@drawable/shape_home_bottom2_rectangle"
  267. android:orientation="vertical"
  268. android:padding="@dimen/dp_7">
  269. <TextView
  270. android:layout_width="wrap_content"
  271. android:layout_height="wrap_content"
  272. android:layout_marginRight="@dimen/dp_70"
  273. android:text="@string/cleaning_method"
  274. android:textColor="#3E5DA8"
  275. android:textSize="@dimen/sp_7" />
  276. <LinearLayout
  277. android:layout_width="match_parent"
  278. android:layout_height="match_parent"
  279. android:gravity="center">
  280. <RelativeLayout
  281. android:id="@+id/rl_clear"
  282. android:layout_width="@dimen/dp_80"
  283. android:layout_height="match_parent"
  284. android:layout_margin="@dimen/dp_5"
  285. android:background="@drawable/shape_clearblue_rectangle">
  286. <TextView
  287. android:layout_width="wrap_content"
  288. android:layout_height="wrap_content"
  289. android:padding="@dimen/dp_5"
  290. android:text="@string/start_cleaning"
  291. android:textColor="@color/white"
  292. android:textSize="@dimen/dp_8" />
  293. <ImageView
  294. android:layout_width="@dimen/dp_40"
  295. android:layout_height="@dimen/dp_40"
  296. android:layout_alignParentRight="true"
  297. android:layout_alignParentBottom="true"
  298. android:src="@drawable/timing2" />
  299. </RelativeLayout>
  300. <RelativeLayout
  301. android:layout_width="@dimen/dp_80"
  302. android:layout_height="match_parent"
  303. android:layout_margin="@dimen/dp_5"
  304. android:background="@drawable/shape_clearorgle_rectangle">
  305. <TextView
  306. android:layout_width="wrap_content"
  307. android:layout_height="wrap_content"
  308. android:padding="@dimen/dp_5"
  309. android:text="@string/regular_cleaning"
  310. android:textColor="@color/white"
  311. android:textSize="@dimen/dp_8" />
  312. <ImageView
  313. android:layout_width="@dimen/dp_40"
  314. android:layout_height="@dimen/dp_40"
  315. android:layout_alignParentRight="true"
  316. android:layout_alignParentBottom="true"
  317. android:src="@drawable/time2" />
  318. </RelativeLayout>
  319. </LinearLayout>
  320. </LinearLayout>
  321. <LinearLayout
  322. android:layout_width="match_parent"
  323. android:layout_height="@dimen/dp_80"
  324. android:layout_marginLeft="@dimen/dp_5"
  325. android:layout_marginTop="@dimen/dp_5"
  326. android:layout_marginBottom="@dimen/dp_5"
  327. android:background="@drawable/shape_home_bottom2_rectangle"
  328. android:orientation="vertical"
  329. android:padding="@dimen/dp_7">
  330. <TextView
  331. android:layout_width="wrap_content"
  332. android:layout_height="wrap_content"
  333. android:layout_marginRight="@dimen/dp_70"
  334. android:text="@string/environmental_testing"
  335. android:textColor="#3E5DA8"
  336. android:textSize="@dimen/sp_7" />
  337. <LinearLayout
  338. android:layout_width="match_parent"
  339. android:layout_height="wrap_content"
  340. android:layout_marginTop="@dimen/sp_8"
  341. android:gravity="center">
  342. <TextView
  343. android:layout_width="@dimen/dp_28"
  344. android:layout_height="@dimen/dp_28"
  345. android:layout_marginRight="@dimen/dp_28"
  346. android:background="@drawable/shape_hollow_circle_wendu"
  347. android:gravity="center"
  348. android:text="40°"
  349. android:textColor="#ffd95e"
  350. android:textSize="@dimen/sp_8" />
  351. <TextView
  352. android:layout_width="@dimen/dp_28"
  353. android:layout_height="@dimen/dp_28"
  354. android:layout_marginRight="@dimen/dp_28"
  355. android:background="@drawable/shape_hollow_circle_shidu"
  356. android:gravity="center"
  357. android:text="40°"
  358. android:textColor="#437dff"
  359. android:textSize="@dimen/sp_8" />
  360. <TextView
  361. android:layout_width="@dimen/dp_28"
  362. android:layout_height="@dimen/dp_28"
  363. android:layout_marginLeft="@dimen/dp_5"
  364. android:layout_marginRight="@dimen/dp_5"
  365. android:background="@drawable/shape_hollow_circle_huanjing"
  366. android:gravity="center"
  367. android:text="40°"
  368. android:textColor="#57f3ff"
  369. android:textSize="@dimen/sp_8" />
  370. </LinearLayout>
  371. <LinearLayout
  372. android:layout_width="match_parent"
  373. android:layout_height="match_parent"
  374. android:layout_marginTop="@dimen/sp_8"
  375. android:gravity="center">
  376. <TextView
  377. android:layout_width="@dimen/dp_28"
  378. android:layout_height="@dimen/dp_28"
  379. android:layout_marginRight="@dimen/dp_30"
  380. android:gravity="center"
  381. android:text="@string/temperature"
  382. android:textColor="@color/logo_blue"
  383. android:textSize="@dimen/sp_6" />
  384. <TextView
  385. android:layout_width="@dimen/dp_28"
  386. android:layout_height="@dimen/dp_28"
  387. android:layout_marginRight="@dimen/dp_30"
  388. android:gravity="center"
  389. android:text="@string/humidity"
  390. android:textColor="@color/logo_blue"
  391. android:textSize="@dimen/sp_6" />
  392. <TextView
  393. android:layout_width="@dimen/dp_40"
  394. android:layout_height="@dimen/dp_28"
  395. android:gravity="center"
  396. android:text="@string/environmental_comfort_index"
  397. android:textColor="@color/logo_blue"
  398. android:textSize="@dimen/sp_6" />
  399. </LinearLayout>
  400. </LinearLayout>
  401. </LinearLayout>
  402. </android.support.constraint.ConstraintLayout>