activity_login.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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="@color/black"
  8. tools:context="com.zhong.inspection.ui.LoginActivity">
  9. <io.fotoapparat.facedetector.view.CameraOverlayLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent">
  12. <io.fotoapparat.view.CameraView
  13. android:id="@+id/camera_view"
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent" />
  16. <io.fotoapparat.facedetector.view.RectanglesView
  17. android:id="@+id/rectanglesView"
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. app:rectanglesColor="#FF4081"
  21. app:rectanglesStrokeWidth="2dp" />
  22. </io.fotoapparat.facedetector.view.CameraOverlayLayout>
  23. <ImageView
  24. android:id="@+id/camera"
  25. android:layout_width="110dp"
  26. android:layout_height="101dp"
  27. android:layout_centerHorizontal="true"
  28. android:layout_centerVertical="true"
  29. android:contentDescription="@null"
  30. android:padding="30dp"
  31. android:src="@mipmap/icon_sign_in_camera"
  32. android:visibility="gone" />
  33. <TextView
  34. android:id="@+id/cameraTips"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:layout_below="@+id/camera"
  38. android:layout_centerHorizontal="true"
  39. android:layout_marginTop="14dp"
  40. android:text="请将脸部对准摄像头"
  41. android:textColor="@android:color/white"
  42. android:textSize="17sp" />
  43. </RelativeLayout>