activity_two_verification.xml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  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. android:orientation="vertical"
  9. tools:context=".ui.verify.TwoVerificationActivity">
  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_marginLeft="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_marginLeft="10dp"
  27. android:layout_toRightOf="@+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:layout_centerHorizontal="true"
  42. android:layout_centerVertical="true"
  43. android:text="化学品智能管理"
  44. android:textColor="@color/white"
  45. android:textSize="24sp"
  46. android:textStyle="bold" />
  47. <TextView
  48. android:id="@+id/nowTime"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:layout_marginLeft="6dp"
  52. android:layout_toRightOf="@+id/tvTitle"
  53. android:textColor="@color/white" />
  54. </LinearLayout>
  55. <RelativeLayout
  56. android:id="@+id/loggedIn"
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:layout_alignParentRight="true"
  60. android:layout_centerVertical="true"
  61. android:layout_marginRight="18dp"
  62. android:gravity="center_vertical"
  63. android:visibility="gone">
  64. <ImageView
  65. android:id="@+id/imageName"
  66. android:layout_width="30dp"
  67. android:layout_height="30dp"
  68. android:layout_centerVertical="true"
  69. android:layout_marginRight="6dp" />
  70. <TextView
  71. android:id="@+id/tvName"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:layout_centerVertical="true"
  75. android:layout_marginLeft="6dp"
  76. android:layout_marginRight="6dp"
  77. android:layout_toRightOf="@+id/imageName"
  78. android:text="李XX"
  79. android:textColor="@color/white" />
  80. <ImageView
  81. android:id="@+id/imgOut"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_centerVertical="true"
  85. android:layout_marginLeft="6dp"
  86. android:layout_marginRight="6dp"
  87. android:layout_toRightOf="@+id/tvName"
  88. android:background="@mipmap/cshrk_dl_tc" />
  89. <TextView
  90. android:id="@+id/tvOutLogin"
  91. android:layout_width="wrap_content"
  92. android:layout_height="wrap_content"
  93. android:layout_centerVertical="true"
  94. android:layout_marginRight="10dp"
  95. android:layout_toRightOf="@+id/imgOut"
  96. android:text="退出"
  97. android:textColor="@color/white"
  98. android:textSize="16sp" />
  99. </RelativeLayout>
  100. </RelativeLayout>
  101. <RelativeLayout
  102. android:layout_width="match_parent"
  103. android:layout_height="match_parent"
  104. android:layout_below="@+id/rel1"
  105. android:layout_marginLeft="31dp"
  106. android:layout_marginTop="15dp"
  107. android:layout_marginRight="31dp"
  108. android:layout_marginBottom="79dp"
  109. android:background="@drawable/bg_bei_jing">
  110. <TextView
  111. android:id="@+id/tvOen"
  112. android:layout_width="wrap_content"
  113. android:layout_height="wrap_content"
  114. android:layout_centerHorizontal="true"
  115. android:layout_marginTop="16dp"
  116. android:text="双 人 认 证"
  117. android:textColor="@color/white"
  118. android:textSize="16sp"
  119. android:textStyle="bold" />
  120. <LinearLayout
  121. android:layout_width="match_parent"
  122. android:layout_height="match_parent"
  123. android:layout_below="@+id/tvOen"
  124. android:layout_marginLeft="8dp"
  125. android:layout_marginTop="20dp"
  126. android:layout_marginRight="8dp"
  127. android:layout_marginBottom="10dp"
  128. android:orientation="horizontal">
  129. <LinearLayout
  130. android:layout_width="500dp"
  131. android:layout_height="wrap_content"
  132. android:layout_below="@+id/rel1"
  133. android:layout_marginRight="4dp"
  134. android:layout_weight="1"
  135. android:orientation="vertical">
  136. <RelativeLayout
  137. android:layout_width="match_parent"
  138. android:layout_height="45dp"
  139. android:background="@drawable/bg_ren_lian">
  140. <ImageView
  141. android:id="@+id/imgA"
  142. android:layout_width="30dp"
  143. android:layout_height="30dp"
  144. android:layout_centerVertical="true"
  145. android:layout_marginLeft="10dp"
  146. android:background="@mipmap/icon_smrz_sfrz" />
  147. <TextView
  148. android:id="@+id/tvMsg"
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:layout_centerVertical="true"
  152. android:layout_marginLeft="10dp"
  153. android:layout_toRightOf="@+id/imgA"
  154. android:text="请 第 一 位 人 脸 验 证"
  155. android:textColor="@color/white"
  156. android:textSize="18sp" />
  157. </RelativeLayout>
  158. <RelativeLayout
  159. android:id="@+id/viewFace"
  160. android:layout_width="match_parent"
  161. android:layout_height="233dp"
  162. android:background="@drawable/bg_face_nt">
  163. <io.fotoapparat.facedetector.view.CameraOverlayLayout
  164. android:layout_width="match_parent"
  165. android:layout_height="match_parent">
  166. <io.fotoapparat.view.CameraView
  167. android:id="@+id/cameraView"
  168. android:layout_width="match_parent"
  169. android:layout_height="match_parent" />
  170. <io.fotoapparat.facedetector.view.RectanglesView
  171. android:id="@+id/rectanglesView"
  172. android:layout_width="match_parent"
  173. android:layout_height="match_parent"
  174. app:rectanglesColor="#FF4081"
  175. app:rectanglesStrokeWidth="2dp" />
  176. </io.fotoapparat.facedetector.view.CameraOverlayLayout>
  177. </RelativeLayout>
  178. <RelativeLayout
  179. android:id="@+id/viewCard"
  180. android:layout_width="match_parent"
  181. android:layout_height="233dp"
  182. android:background="@drawable/bg_face_nt"
  183. android:gravity="center"
  184. android:visibility="gone">
  185. <ImageView
  186. android:layout_width="wrap_content"
  187. android:layout_height="wrap_content"
  188. android:layout_marginLeft="35dp"
  189. android:layout_marginTop="10dp"
  190. android:background="@mipmap/img_sfrz_sksyt" />
  191. </RelativeLayout>
  192. <LinearLayout
  193. android:id="@+id/viewScan"
  194. android:layout_width="match_parent"
  195. android:layout_height="233dp"
  196. android:background="@drawable/bg_face_nt"
  197. android:gravity="center"
  198. android:orientation="vertical"
  199. android:visibility="gone">
  200. <ImageView
  201. android:id="@+id/imgOne"
  202. android:layout_width="100dp"
  203. android:layout_height="100dp" />
  204. <TextView
  205. android:layout_width="wrap_content"
  206. android:layout_height="wrap_content"
  207. android:layout_marginTop="20dp"
  208. android:text="请打开微信“扫一扫”"
  209. android:textColor="@color/black"
  210. android:textSize="18sp" />
  211. </LinearLayout>
  212. <RelativeLayout
  213. android:layout_width="match_parent"
  214. android:layout_height="50dp"
  215. android:layout_marginTop="8dp"
  216. android:background="@mipmap/icon_rlrz_xx">
  217. <RelativeLayout
  218. android:id="@+id/rlResult"
  219. android:layout_width="wrap_content"
  220. android:layout_height="wrap_content"
  221. android:layout_centerInParent="true"
  222. android:layout_gravity="center"
  223. android:layout_marginLeft="20dp"
  224. android:layout_marginRight="20dp"
  225. android:visibility="gone">
  226. <ImageView
  227. android:id="@+id/imgC"
  228. android:layout_width="wrap_content"
  229. android:layout_height="wrap_content"
  230. android:background="@mipmap/icon_sy_zq" />
  231. <TextView
  232. android:layout_width="wrap_content"
  233. android:layout_height="wrap_content"
  234. android:layout_centerVertical="true"
  235. android:layout_marginLeft="14dp"
  236. android:layout_toRightOf="@+id/imgC"
  237. android:text="验证通过"
  238. android:textColor="@color/purple_FF16BC3D"
  239. android:textSize="18sp" />
  240. </RelativeLayout>
  241. <RelativeLayout
  242. android:id="@+id/rlView"
  243. android:layout_width="match_parent"
  244. android:layout_height="wrap_content">
  245. <ImageView
  246. android:id="@+id/imgLetA"
  247. android:layout_width="wrap_content"
  248. android:layout_height="wrap_content"
  249. android:layout_centerVertical="true"
  250. android:layout_marginLeft="6dp"
  251. android:background="@mipmap/icon_sfsb_tx" />
  252. <LinearLayout
  253. android:layout_width="wrap_content"
  254. android:layout_height="wrap_content"
  255. android:layout_centerVertical="true"
  256. android:layout_marginLeft="10dp"
  257. android:layout_toRightOf="@+id/imgLetA"
  258. android:orientation="vertical">
  259. <TextView
  260. android:id="@+id/tvMsgRoa"
  261. android:layout_width="wrap_content"
  262. android:layout_height="wrap_content"
  263. android:text="请正对屏幕并使脸位于取景框内"
  264. android:textColor="@color/black"
  265. android:textSize="12sp" />
  266. <TextView
  267. android:id="@+id/tvMsgRob"
  268. android:layout_width="wrap_content"
  269. android:layout_height="wrap_content"
  270. android:text="请保持光线充足,避免光照过强或过弱"
  271. android:textColor="@color/black"
  272. android:textSize="12sp" />
  273. </LinearLayout>
  274. <LinearLayout
  275. android:id="@+id/lint"
  276. android:layout_width="wrap_content"
  277. android:layout_height="wrap_content"
  278. android:layout_alignParentRight="true"
  279. android:orientation="horizontal">
  280. <TextView
  281. android:id="@+id/scan"
  282. android:layout_width="98dp"
  283. android:layout_height="wrap_content"
  284. android:background="@mipmap/icon_sfsb_wxsm" />
  285. <TextView
  286. android:id="@+id/campus"
  287. android:layout_width="98dp"
  288. android:layout_height="wrap_content"
  289. android:background="@mipmap/icon_sfsb_xyk" />
  290. <TextView
  291. android:id="@+id/face"
  292. android:layout_width="98dp"
  293. android:layout_height="wrap_content"
  294. android:background="@mipmap/icon_sfsb_rlsb"
  295. android:visibility="gone" />
  296. </LinearLayout>
  297. </RelativeLayout>
  298. </RelativeLayout>
  299. </LinearLayout>
  300. <LinearLayout
  301. android:layout_width="500dp"
  302. android:layout_height="wrap_content"
  303. android:layout_below="@+id/rel1"
  304. android:layout_marginLeft="4dp"
  305. android:layout_weight="1"
  306. android:orientation="vertical">
  307. <RelativeLayout
  308. android:layout_width="match_parent"
  309. android:layout_height="45dp"
  310. android:background="@drawable/bg_ren_lian">
  311. <ImageView
  312. android:id="@+id/imgB"
  313. android:layout_width="30dp"
  314. android:layout_height="30dp"
  315. android:layout_centerVertical="true"
  316. android:layout_marginLeft="10dp"
  317. android:background="@mipmap/icon_smrz_sfrz" />
  318. <TextView
  319. android:id="@+id/tvMsgRoe"
  320. android:layout_width="wrap_content"
  321. android:layout_height="wrap_content"
  322. android:layout_centerVertical="true"
  323. android:layout_marginLeft="10dp"
  324. android:layout_toRightOf="@+id/imgB"
  325. android:text="请 第 二 位 人 脸 验 证"
  326. android:textColor="@color/white"
  327. android:textSize="18sp"
  328. android:textStyle="bold" />
  329. </RelativeLayout>
  330. <RelativeLayout
  331. android:id="@+id/viewFaceRoa"
  332. android:layout_width="match_parent"
  333. android:layout_height="233dp"
  334. android:background="@drawable/bg_face_nt"
  335. android:gravity="center">
  336. <io.fotoapparat.facedetector.view.CameraOverlayLayout
  337. android:layout_width="match_parent"
  338. android:layout_height="match_parent">
  339. <io.fotoapparat.view.CameraView
  340. android:id="@+id/cameraViewTwo"
  341. android:layout_width="match_parent"
  342. android:layout_height="match_parent" />
  343. <io.fotoapparat.facedetector.view.RectanglesView
  344. android:id="@+id/rectanglesViewTwo"
  345. android:layout_width="match_parent"
  346. android:layout_height="match_parent"
  347. app:rectanglesColor="#FF4081"
  348. app:rectanglesStrokeWidth="2dp" />
  349. </io.fotoapparat.facedetector.view.CameraOverlayLayout>
  350. <ImageView
  351. android:id="@+id/imgFace"
  352. android:layout_width="match_parent"
  353. android:layout_height="wrap_content"
  354. android:background="@mipmap/icon_face_two" />
  355. </RelativeLayout>
  356. <RelativeLayout
  357. android:id="@+id/viewCardRoa"
  358. android:layout_width="match_parent"
  359. android:layout_height="233dp"
  360. android:background="@drawable/bg_face_nt"
  361. android:gravity="center"
  362. android:visibility="gone">
  363. <ImageView
  364. android:layout_width="wrap_content"
  365. android:layout_height="wrap_content"
  366. android:layout_marginLeft="35dp"
  367. android:layout_marginTop="10dp"
  368. android:background="@mipmap/img_sfrz_sksyt" />
  369. </RelativeLayout>
  370. <LinearLayout
  371. android:id="@+id/viewScanRoa"
  372. android:layout_width="match_parent"
  373. android:layout_height="233dp"
  374. android:background="@drawable/bg_face_nt"
  375. android:gravity="center"
  376. android:orientation="vertical"
  377. android:visibility="gone">
  378. <ImageView
  379. android:id="@+id/imgRoa"
  380. android:layout_width="100dp"
  381. android:layout_height="100dp"
  382. android:visibility="gone" />
  383. <TextView
  384. android:layout_width="wrap_content"
  385. android:layout_height="wrap_content"
  386. android:layout_marginTop="20dp"
  387. android:text="请打开微信“扫一扫”"
  388. android:textColor="@color/black"
  389. android:textSize="18sp" />
  390. </LinearLayout>
  391. <RelativeLayout
  392. android:layout_width="match_parent"
  393. android:layout_height="50dp"
  394. android:layout_marginTop="8dp"
  395. android:background="@mipmap/icon_rlrz_xx">
  396. <ImageView
  397. android:id="@+id/imgLetB"
  398. android:layout_width="wrap_content"
  399. android:layout_height="wrap_content"
  400. android:layout_centerVertical="true"
  401. android:layout_marginLeft="6dp"
  402. android:background="@mipmap/icon_sfsb_tx" />
  403. <LinearLayout
  404. android:layout_width="wrap_content"
  405. android:layout_height="wrap_content"
  406. android:layout_centerVertical="true"
  407. android:layout_marginLeft="10dp"
  408. android:layout_toRightOf="@+id/imgLetB"
  409. android:orientation="vertical">
  410. <TextView
  411. android:id="@+id/tvMsgRoc"
  412. android:layout_width="wrap_content"
  413. android:layout_height="wrap_content"
  414. android:text="请正对屏幕并使脸位于取景框内"
  415. android:textColor="@color/black"
  416. android:textSize="12sp" />
  417. <TextView
  418. android:id="@+id/tvMsgRod"
  419. android:layout_width="wrap_content"
  420. android:layout_height="wrap_content"
  421. android:text="请保持光线充足,避免光照过强或过弱"
  422. android:textColor="@color/black"
  423. android:textSize="12sp" />
  424. </LinearLayout>
  425. <LinearLayout
  426. android:id="@+id/lintTwo"
  427. android:layout_width="wrap_content"
  428. android:layout_height="wrap_content"
  429. android:layout_alignParentRight="true"
  430. android:orientation="horizontal">
  431. <TextView
  432. android:id="@+id/scanTwo"
  433. android:layout_width="98dp"
  434. android:layout_height="wrap_content"
  435. android:background="@mipmap/icon_sfsb_wxsm" />
  436. <TextView
  437. android:id="@+id/campusTwo"
  438. android:layout_width="98dp"
  439. android:layout_height="wrap_content"
  440. android:background="@mipmap/icon_sfsb_xyk" />
  441. <TextView
  442. android:id="@+id/faceRoa"
  443. android:layout_width="98dp"
  444. android:layout_height="wrap_content"
  445. android:background="@mipmap/icon_sfsb_rlsb"
  446. android:visibility="gone" />
  447. </LinearLayout>
  448. </RelativeLayout>
  449. </LinearLayout>
  450. </LinearLayout>
  451. </RelativeLayout>
  452. <Button
  453. android:id="@+id/tvReturn"
  454. android:layout_width="85dp"
  455. android:layout_height="30dp"
  456. android:layout_alignParentBottom="true"
  457. android:layout_marginBottom="20dp"
  458. android:background="@drawable/bg_retrun"
  459. android:text="返回180s"
  460. android:textColor="@color/white"
  461. android:textSize="12sp" />
  462. </RelativeLayout>