activity_swipe_code_two.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout 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="@mipmap/icon_bgm"
  8. tools:context=".ui.verify.SwipeCodeTwoActivity">
  9. <RelativeLayout
  10. android:id="@+id/rel1"
  11. android:layout_width="match_parent"
  12. android:layout_height="45dp"
  13. android:layout_marginTop="10dp">
  14. <ImageView
  15. android:id="@+id/image"
  16. android:layout_width="30dp"
  17. android:layout_height="30dp"
  18. android:layout_centerVertical="true"
  19. android:layout_marginLeft="10dp" />
  20. <TextView
  21. android:ellipsize="end"
  22. android:maxLines="1"
  23. android:id="@+id/deptName"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_centerVertical="true"
  27. android:layout_marginLeft="10dp"
  28. android:layout_toRightOf="@+id/image"
  29. android:text="实验室名称-房间号"
  30. android:textColor="@color/white"
  31. android:textSize="22sp"
  32. android:textStyle="bold" />
  33. <RelativeLayout
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_centerInParent="true"
  37. android:layout_centerVertical="true"
  38. android:layout_marginTop="2dp">
  39. <TextView
  40. android:ellipsize="end"
  41. android:maxLines="1"
  42. android:id="@+id/tvTitle"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:layout_centerHorizontal="true"
  46. android:layout_centerVertical="true"
  47. android:text="化学品智能管理"
  48. android:textColor="@color/white"
  49. android:textSize="24sp"
  50. android:textStyle="bold" />
  51. <TextView
  52. android:ellipsize="end"
  53. android:maxLines="1"
  54. android:id="@+id/nowTime"
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:layout_marginLeft="15dp"
  58. android:layout_marginTop="10dp"
  59. android:layout_toRightOf="@+id/tvTitle"
  60. android:textColor="@color/white" />
  61. </RelativeLayout>
  62. </RelativeLayout>
  63. <RelativeLayout
  64. android:layout_width="match_parent"
  65. android:layout_height="match_parent"
  66. android:layout_below="@+id/rel1"
  67. android:layout_marginLeft="31dp"
  68. android:layout_marginTop="15dp"
  69. android:layout_marginRight="31dp"
  70. android:layout_marginBottom="79dp"
  71. android:background="@drawable/bg_bei_jing">
  72. <TextView
  73. android:ellipsize="end"
  74. android:maxLines="1"
  75. android:id="@+id/tvOen"
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:layout_centerHorizontal="true"
  79. android:layout_marginTop="16dp"
  80. android:text="双 人 认 证"
  81. android:textColor="@color/white"
  82. android:textSize="16sp"
  83. android:textStyle="bold" />
  84. <LinearLayout
  85. android:layout_width="match_parent"
  86. android:layout_height="match_parent"
  87. android:layout_below="@+id/tvOen"
  88. android:layout_marginLeft="8dp"
  89. android:layout_marginTop="20dp"
  90. android:layout_marginRight="8dp"
  91. android:layout_marginBottom="10dp"
  92. android:orientation="horizontal">
  93. <LinearLayout
  94. android:layout_width="500dp"
  95. android:layout_height="wrap_content"
  96. android:layout_below="@+id/rel1"
  97. android:layout_marginRight="4dp"
  98. android:layout_weight="1"
  99. android:orientation="vertical">
  100. <RelativeLayout
  101. android:layout_width="match_parent"
  102. android:layout_height="45dp"
  103. android:background="@drawable/bg_ren_lian">
  104. <ImageView
  105. android:id="@+id/imgA"
  106. android:layout_width="30dp"
  107. android:layout_height="30dp"
  108. android:layout_centerVertical="true"
  109. android:layout_marginLeft="10dp"
  110. android:background="@mipmap/icon_smrz_sfrz" />
  111. <TextView
  112. android:ellipsize="end"
  113. android:maxLines="1"
  114. android:layout_width="wrap_content"
  115. android:layout_height="wrap_content"
  116. android:layout_centerVertical="true"
  117. android:layout_marginLeft="10dp"
  118. android:layout_toRightOf="@+id/imgA"
  119. android:text="请 第 一 位 刷 卡 验 证"
  120. android:textColor="@color/white"
  121. android:textSize="18sp"
  122. android:textStyle="bold" />
  123. </RelativeLayout>
  124. <RelativeLayout
  125. android:layout_width="wrap_content"
  126. android:layout_height="wrap_content">
  127. <RelativeLayout
  128. android:layout_width="match_parent"
  129. android:layout_height="220dp"
  130. android:background="@drawable/bg_face_nt"
  131. android:gravity="center">
  132. <ImageView
  133. android:layout_width="wrap_content"
  134. android:layout_height="wrap_content"
  135. android:layout_marginLeft="35dp"
  136. android:layout_marginTop="10dp"
  137. android:background="@mipmap/img_sfrz_sksyt" />
  138. </RelativeLayout>
  139. <LinearLayout
  140. android:id="@+id/through"
  141. android:layout_width="wrap_content"
  142. android:layout_height="110dp"
  143. android:visibility="gone"
  144. android:layout_centerInParent="true"
  145. android:background="@drawable/bg_shu_ru_kuang">
  146. <RelativeLayout
  147. android:layout_width="wrap_content"
  148. android:layout_height="wrap_content"
  149. android:layout_gravity="center_vertical"
  150. android:layout_marginLeft="20dp">
  151. <ImageView
  152. android:id="@+id/imgView"
  153. android:layout_width="112dp"
  154. android:layout_height="85dp"
  155. android:scaleType="centerCrop"
  156. android:src="@mipmap/icon_zhan_wei" />
  157. <TextView
  158. android:ellipsize="end"
  159. android:maxLines="1"
  160. android:id="@+id/userName"
  161. android:layout_width="112dp"
  162. android:layout_height="wrap_content"
  163. android:layout_marginTop="65dp"
  164. android:background="@drawable/bg_name_ont"
  165. android:gravity="center"
  166. android:textColor="@color/white" />
  167. </RelativeLayout>
  168. <View
  169. android:layout_width="0.2dp"
  170. android:layout_height="match_parent"
  171. android:layout_marginLeft="30dp"
  172. android:background="@color/purple_FFE0E0E0" />
  173. <RelativeLayout
  174. android:id="@+id/rlTwo"
  175. android:layout_width="wrap_content"
  176. android:layout_height="wrap_content"
  177. android:layout_gravity="center"
  178. android:layout_marginLeft="20dp"
  179. android:layout_marginRight="20dp">
  180. <ImageView
  181. android:id="@+id/imgC"
  182. android:layout_width="wrap_content"
  183. android:layout_height="wrap_content"
  184. android:background="@mipmap/icon_sy_zq" />
  185. <TextView
  186. android:ellipsize="end"
  187. android:maxLines="1"
  188. android:layout_width="wrap_content"
  189. android:layout_height="wrap_content"
  190. android:layout_centerVertical="true"
  191. android:layout_marginLeft="14dp"
  192. android:layout_toRightOf="@+id/imgC"
  193. android:text="验证通过"
  194. android:textColor="@color/purple_FF16BC3D"
  195. android:textSize="16sp" />
  196. </RelativeLayout>
  197. </LinearLayout>
  198. </RelativeLayout>
  199. <RelativeLayout
  200. android:layout_width="match_parent"
  201. android:layout_height="50dp"
  202. android:layout_marginTop="8dp"
  203. android:background="@mipmap/icon_rlrz_xx">
  204. <ImageView
  205. android:id="@+id/imgLetA"
  206. android:layout_width="wrap_content"
  207. android:layout_height="wrap_content"
  208. android:layout_centerVertical="true"
  209. android:layout_marginLeft="6dp"
  210. android:background="@mipmap/icon_sfsb_tx" />
  211. <LinearLayout
  212. android:layout_width="wrap_content"
  213. android:layout_height="wrap_content"
  214. android:layout_centerVertical="true"
  215. android:layout_marginLeft="10dp"
  216. android:layout_toRightOf="@+id/imgLetA"
  217. android:orientation="vertical">
  218. <TextView
  219. android:ellipsize="end"
  220. android:maxLines="1"
  221. android:layout_width="wrap_content"
  222. android:layout_height="wrap_content"
  223. android:text="请在刷卡区域进行刷卡验证"
  224. android:textColor="@color/black"
  225. android:textSize="12sp" />
  226. </LinearLayout>
  227. <LinearLayout
  228. android:id="@+id/lint"
  229. android:layout_width="wrap_content"
  230. android:layout_height="wrap_content"
  231. android:layout_alignParentRight="true"
  232. android:orientation="horizontal">
  233. <TextView
  234. android:ellipsize="end"
  235. android:maxLines="1"
  236. android:id="@+id/face"
  237. android:layout_width="98dp"
  238. android:layout_height="wrap_content"
  239. android:background="@mipmap/icon_sfsb_rlsb" />
  240. <TextView
  241. android:ellipsize="end"
  242. android:maxLines="1"
  243. android:id="@+id/wxScan"
  244. android:layout_width="98dp"
  245. android:layout_height="wrap_content"
  246. android:background="@mipmap/icon_sfsb_wxsm" />
  247. </LinearLayout>
  248. </RelativeLayout>
  249. </LinearLayout>
  250. <LinearLayout
  251. android:layout_width="500dp"
  252. android:layout_height="wrap_content"
  253. android:layout_below="@+id/rel1"
  254. android:layout_marginLeft="4dp"
  255. android:layout_weight="1"
  256. android:orientation="vertical">
  257. <RelativeLayout
  258. android:layout_width="match_parent"
  259. android:layout_height="45dp"
  260. android:background="@drawable/bg_ren_lian">
  261. <ImageView
  262. android:id="@+id/imgB"
  263. android:layout_width="30dp"
  264. android:layout_height="30dp"
  265. android:layout_centerVertical="true"
  266. android:layout_marginLeft="10dp"
  267. android:background="@mipmap/icon_smrz_sfrz" />
  268. <TextView
  269. android:ellipsize="end"
  270. android:maxLines="1"
  271. android:layout_width="wrap_content"
  272. android:layout_height="wrap_content"
  273. android:layout_centerVertical="true"
  274. android:layout_marginLeft="10dp"
  275. android:layout_toRightOf="@+id/imgB"
  276. android:text="请 第 二 位 刷 卡 认 证"
  277. android:textColor="@color/white"
  278. android:textSize="18sp"
  279. android:textStyle="bold" />
  280. </RelativeLayout>
  281. <RelativeLayout
  282. android:layout_width="match_parent"
  283. android:layout_height="220dp"
  284. android:background="@drawable/bg_face_nt"
  285. android:gravity="center">
  286. <ImageView
  287. android:layout_width="wrap_content"
  288. android:layout_height="wrap_content"
  289. android:layout_marginLeft="35dp"
  290. android:layout_marginTop="10dp"
  291. android:background="@mipmap/img_sfrz_sksyt" />
  292. </RelativeLayout>
  293. <RelativeLayout
  294. android:layout_width="match_parent"
  295. android:layout_height="50dp"
  296. android:layout_marginTop="8dp"
  297. android:background="@mipmap/icon_rlrz_xx">
  298. <ImageView
  299. android:id="@+id/imgLetB"
  300. android:layout_width="wrap_content"
  301. android:layout_height="wrap_content"
  302. android:layout_centerVertical="true"
  303. android:layout_marginLeft="6dp"
  304. android:background="@mipmap/icon_sfsb_tx" />
  305. <LinearLayout
  306. android:layout_width="wrap_content"
  307. android:layout_height="wrap_content"
  308. android:layout_centerVertical="true"
  309. android:layout_marginLeft="10dp"
  310. android:layout_toRightOf="@+id/imgLetB"
  311. android:orientation="vertical">
  312. <TextView
  313. android:ellipsize="end"
  314. android:maxLines="1"
  315. android:layout_width="wrap_content"
  316. android:layout_height="wrap_content"
  317. android:text="请在刷卡区域进行刷卡验证"
  318. android:textColor="@color/black"
  319. android:textSize="12sp" />
  320. </LinearLayout>
  321. <LinearLayout
  322. android:id="@+id/lintTwo"
  323. android:layout_width="wrap_content"
  324. android:layout_height="wrap_content"
  325. android:layout_alignParentRight="true"
  326. android:orientation="horizontal">
  327. <TextView
  328. android:ellipsize="end"
  329. android:maxLines="1"
  330. android:id="@+id/faceTwo"
  331. android:layout_width="98dp"
  332. android:layout_height="wrap_content"
  333. android:background="@mipmap/icon_sfsb_rlsb" />
  334. <TextView
  335. android:ellipsize="end"
  336. android:maxLines="1"
  337. android:id="@+id/wxScanTwo"
  338. android:layout_width="98dp"
  339. android:layout_height="wrap_content"
  340. android:background="@mipmap/icon_sfsb_wxsm" />
  341. </LinearLayout>
  342. </RelativeLayout>
  343. </LinearLayout>
  344. </LinearLayout>
  345. </RelativeLayout>
  346. <Button
  347. android:id="@+id/tvReturn"
  348. android:layout_width="85dp"
  349. android:layout_height="30dp"
  350. android:layout_alignParentBottom="true"
  351. android:layout_marginBottom="20dp"
  352. android:background="@drawable/bg_retrun"
  353. android:textSize="12sp"
  354. android:text="返回180s"
  355. android:textColor="@color/white" />
  356. </RelativeLayout>