activity_unlock.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:animateLayoutChanges="true"
  7. android:background="@mipmap/icon_add_bg"
  8. android:orientation="vertical"
  9. tools:ignore="PxUsage">
  10. <RelativeLayout
  11. android:id="@+id/rel1"
  12. android:layout_width="match_parent"
  13. android:layout_height="45dp"
  14. android:layout_marginTop="10dp">
  15. <ImageView
  16. android:id="@+id/image"
  17. android:layout_width="30dp"
  18. android:layout_height="30dp"
  19. android:layout_centerVertical="true"
  20. android:layout_marginStart="20dp" />
  21. <TextView
  22. android:id="@+id/deptName"
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:layout_centerVertical="true"
  26. android:layout_marginStart="10dp"
  27. android:layout_toEndOf="@+id/image"
  28. android:text="实验室名称-房间号"
  29. android:textColor="@color/white"
  30. android:textSize="22sp" />
  31. <LinearLayout
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:layout_centerInParent="true"
  35. android:layout_centerVertical="true"
  36. android:layout_marginTop="2dp">
  37. <TextView
  38. android:id="@+id/tvTitle"
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:text="化学品智能管理"
  42. android:textColor="@color/white"
  43. android:textSize="24sp"
  44. android:textStyle="bold" />
  45. <TextView
  46. android:id="@+id/nowTime"
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:layout_marginStart="6dp"
  50. android:textColor="@color/white" />
  51. </LinearLayout>
  52. <RelativeLayout
  53. android:id="@+id/loggedIn"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:layout_alignParentEnd="true"
  57. android:layout_centerVertical="true"
  58. android:gravity="center_vertical"
  59. android:paddingEnd="18dp">
  60. <ImageView
  61. android:id="@+id/imageName"
  62. android:layout_width="30dp"
  63. android:layout_height="30dp"
  64. android:layout_centerVertical="true"
  65. android:layout_marginEnd="6dp" />
  66. <TextView
  67. android:id="@+id/tvName"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_centerVertical="true"
  71. android:layout_marginLeft="6dp"
  72. android:layout_marginRight="6dp"
  73. android:layout_toEndOf="@+id/imageName"
  74. android:text="李XX"
  75. android:textColor="@color/white" />
  76. <ImageView
  77. android:id="@+id/imgOut"
  78. android:layout_width="wrap_content"
  79. android:layout_height="wrap_content"
  80. android:layout_centerVertical="true"
  81. android:layout_marginLeft="6dp"
  82. android:layout_marginRight="6dp"
  83. android:layout_toEndOf="@+id/tvName"
  84. android:background="@mipmap/cshrk_dl_tc" />
  85. <TextView
  86. android:id="@+id/tvOutLogin"
  87. android:layout_width="wrap_content"
  88. android:layout_height="wrap_content"
  89. android:layout_centerVertical="true"
  90. android:layout_marginEnd="10dp"
  91. android:layout_toEndOf="@+id/imgOut"
  92. android:text="退出"
  93. android:textColor="@color/white"
  94. android:textSize="16sp" />
  95. </RelativeLayout>
  96. </RelativeLayout>
  97. <RelativeLayout
  98. android:layout_width="match_parent"
  99. android:layout_height="match_parent"
  100. android:layout_below="@+id/rel1"
  101. android:layout_marginLeft="31dp"
  102. android:layout_marginTop="15dp"
  103. android:layout_marginRight="31dp"
  104. android:layout_marginBottom="69dp"
  105. android:background="@drawable/bg_add_chemicals_one">
  106. <LinearLayout
  107. android:id="@+id/control_LL"
  108. android:layout_width="wrap_content"
  109. android:layout_height="wrap_content"
  110. android:layout_alignParentBottom="true"
  111. android:layout_centerHorizontal="true"
  112. android:layout_marginVertical="10px"
  113. android:orientation="horizontal">
  114. <Button
  115. android:id="@+id/validate_BT"
  116. android:layout_width="250px"
  117. android:layout_height="70px"
  118. android:layout_marginHorizontal="35px"
  119. android:background="@drawable/selector_input_select_bt"
  120. android:text="认证开门"
  121. android:textColor="@color/white" />
  122. <Button
  123. android:id="@+id/retry_BT"
  124. android:layout_width="250px"
  125. android:layout_height="70px"
  126. android:layout_marginHorizontal="35px"
  127. android:background="@drawable/selector_input_select_bt"
  128. android:text="批量重试"
  129. android:textColor="@color/white"
  130. android:visibility="gone" />
  131. <LinearLayout
  132. android:id="@+id/unlock_LL"
  133. android:layout_width="250px"
  134. android:layout_height="70px"
  135. android:background="@drawable/selector_input_select_bt"
  136. android:gravity="center"
  137. android:orientation="horizontal"
  138. android:visibility="gone">
  139. <ProgressBar
  140. android:layout_width="wrap_content"
  141. android:layout_height="wrap_content" />
  142. <TextView
  143. android:layout_width="wrap_content"
  144. android:layout_height="wrap_content"
  145. android:layout_gravity="center_vertical"
  146. android:text="开锁中..."
  147. android:textColor="@color/white" />
  148. </LinearLayout>
  149. <Button
  150. android:id="@+id/save_BT"
  151. android:layout_width="250px"
  152. android:layout_height="70px"
  153. android:layout_marginHorizontal="35px"
  154. android:background="@drawable/selector_input_select_bt"
  155. android:text="完成存储"
  156. android:textColor="@color/white"
  157. android:visibility="gone" />
  158. </LinearLayout>
  159. <LinearLayout
  160. android:layout_width="match_parent"
  161. android:layout_height="match_parent"
  162. android:layout_above="@id/control_LL"
  163. android:layout_marginTop="10px"
  164. android:orientation="horizontal">
  165. <LinearLayout
  166. android:layout_width="400px"
  167. android:layout_height="match_parent"
  168. android:orientation="vertical">
  169. <LinearLayout
  170. android:layout_width="360px"
  171. android:layout_height="wrap_content"
  172. android:layout_gravity="center_horizontal"
  173. android:orientation="vertical">
  174. <TextView
  175. android:layout_width="match_parent"
  176. android:layout_height="80px"
  177. android:background="#2697FF"
  178. android:gravity="center"
  179. android:text="同时打开多个柜门\n请联系以下任意人员协助开门"
  180. android:textColor="@color/white"
  181. android:textSize="22px" />
  182. <LinearLayout
  183. android:layout_width="match_parent"
  184. android:layout_height="100px"
  185. android:orientation="horizontal">
  186. <TextView
  187. android:layout_width="120px"
  188. android:layout_height="wrap_content"
  189. android:layout_gravity="center_vertical"
  190. android:layout_marginHorizontal="10px"
  191. android:text="柜门管理员"
  192. android:textSize="20px" />
  193. <TextView
  194. android:id="@+id/admin_TV"
  195. android:layout_width="wrap_content"
  196. android:layout_height="match_parent"
  197. android:gravity="center_vertical"
  198. android:textSize="18px" />
  199. </LinearLayout>
  200. <LinearLayout
  201. android:layout_width="match_parent"
  202. android:layout_height="100px"
  203. android:orientation="horizontal">
  204. <TextView
  205. android:layout_width="120px"
  206. android:layout_height="wrap_content"
  207. android:layout_gravity="center_vertical"
  208. android:layout_marginHorizontal="10px"
  209. android:text="实验室安全员"
  210. android:textSize="20px" />
  211. <TextView
  212. android:id="@+id/safety_TV"
  213. android:layout_width="wrap_content"
  214. android:layout_height="match_parent"
  215. android:gravity="center_vertical"
  216. android:textSize="18px" />
  217. </LinearLayout>
  218. <LinearLayout
  219. android:layout_width="match_parent"
  220. android:layout_height="100px"
  221. android:orientation="horizontal">
  222. <TextView
  223. android:layout_width="120px"
  224. android:layout_height="wrap_content"
  225. android:layout_gravity="center_vertical"
  226. android:layout_marginHorizontal="10px"
  227. android:text="实验室负责人"
  228. android:textSize="20px" />
  229. <TextView
  230. android:id="@+id/director_TV"
  231. android:layout_width="wrap_content"
  232. android:layout_height="match_parent"
  233. android:gravity="center_vertical"
  234. android:textSize="18px" />
  235. </LinearLayout>
  236. </LinearLayout>
  237. <LinearLayout
  238. android:layout_width="match_parent"
  239. android:layout_height="match_parent"
  240. android:orientation="horizontal">
  241. <LinearLayout
  242. android:layout_width="match_parent"
  243. android:layout_height="match_parent"
  244. android:layout_weight="1"
  245. android:orientation="vertical">
  246. <TextView
  247. android:layout_width="wrap_content"
  248. android:layout_height="match_parent"
  249. android:layout_gravity="end"
  250. android:layout_weight="1"
  251. android:gravity="center"
  252. android:text="柜子" />
  253. <TextView
  254. android:layout_width="wrap_content"
  255. android:layout_height="match_parent"
  256. android:layout_gravity="end"
  257. android:layout_weight="1"
  258. android:gravity="center"
  259. android:text="柜门" />
  260. <TextView
  261. android:layout_width="wrap_content"
  262. android:layout_height="match_parent"
  263. android:layout_gravity="end"
  264. android:layout_weight="1"
  265. android:drawableStart="@drawable/shape_unlock_success"
  266. android:drawablePadding="15px"
  267. android:gravity="center"
  268. android:text="成功" />
  269. <TextView
  270. android:layout_width="wrap_content"
  271. android:layout_height="match_parent"
  272. android:layout_gravity="end"
  273. android:layout_weight="1"
  274. android:drawableStart="@drawable/shape_unlock_failed"
  275. android:drawablePadding="15px"
  276. android:gravity="center"
  277. android:text="失败" />
  278. </LinearLayout>
  279. <LinearLayout
  280. android:layout_width="match_parent"
  281. android:layout_height="match_parent"
  282. android:layout_weight="1"
  283. android:orientation="vertical">
  284. <TextView
  285. android:id="@+id/cabinet_TV"
  286. android:layout_width="wrap_content"
  287. android:layout_height="match_parent"
  288. android:layout_gravity="center_horizontal"
  289. android:layout_weight="1"
  290. android:gravity="center" />
  291. <TextView
  292. android:id="@+id/door_TV"
  293. android:layout_width="wrap_content"
  294. android:layout_height="match_parent"
  295. android:layout_gravity="center_horizontal"
  296. android:layout_weight="1"
  297. android:gravity="center" />
  298. <TextView
  299. android:id="@+id/unlocked_TV"
  300. android:layout_width="wrap_content"
  301. android:layout_height="match_parent"
  302. android:layout_gravity="center_horizontal"
  303. android:layout_weight="1"
  304. android:gravity="center"
  305. android:textColor="#0FB525" />
  306. <TextView
  307. android:id="@+id/unlock_failed_TV"
  308. android:layout_width="wrap_content"
  309. android:layout_height="match_parent"
  310. android:layout_gravity="center_horizontal"
  311. android:layout_weight="1"
  312. android:gravity="center"
  313. android:textColor="#FF2E2E" />
  314. </LinearLayout>
  315. </LinearLayout>
  316. </LinearLayout>
  317. <View
  318. android:layout_width="1px"
  319. android:layout_height="match_parent"
  320. android:layout_marginBottom="20px"
  321. android:background="#a2a2a2" />
  322. <GridView
  323. android:id="@+id/unlock_GV"
  324. android:layout_width="match_parent"
  325. android:layout_height="match_parent"
  326. android:layout_margin="5px"
  327. android:numColumns="3"
  328. tools:listitem="@layout/item_door_unlock" />
  329. </LinearLayout>
  330. </RelativeLayout>
  331. <Button
  332. android:id="@+id/exit"
  333. android:layout_width="85dp"
  334. android:layout_height="30dp"
  335. android:layout_alignParentRight="true"
  336. android:layout_alignParentBottom="true"
  337. android:layout_marginBottom="20dp"
  338. android:background="@drawable/bg_retrun_two"
  339. android:text="结束"
  340. android:textColor="@color/white"
  341. android:textSize="10sp" />
  342. </RelativeLayout>