| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/black"
- tools:context="com.zhong.inspection.ui.LoginActivity">
- <io.fotoapparat.facedetector.view.CameraOverlayLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <io.fotoapparat.view.CameraView
- android:id="@+id/camera_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
- <io.fotoapparat.facedetector.view.RectanglesView
- android:id="@+id/rectanglesView"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- app:rectanglesColor="#FF4081"
- app:rectanglesStrokeWidth="2dp" />
- </io.fotoapparat.facedetector.view.CameraOverlayLayout>
- <ImageView
- android:id="@+id/camera"
- android:layout_width="110dp"
- android:layout_height="101dp"
- android:layout_centerHorizontal="true"
- android:layout_centerVertical="true"
- android:contentDescription="@null"
- android:padding="30dp"
- android:src="@mipmap/icon_sign_in_camera"
- android:visibility="gone" />
- <TextView
- android:id="@+id/cameraTips"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/camera"
- android:layout_centerHorizontal="true"
- android:layout_marginTop="14dp"
- android:text="请将脸部对准摄像头"
- android:textColor="@android:color/white"
- android:textSize="17sp" />
- </RelativeLayout>
|