Newer
Older
OperationSite / app / src / main / res / layout / activity_face_detect.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/rootView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/mainBackColor"
    android:orientation="vertical">

    <com.pengxh.kt.lite.widget.TitleBarView
        android:id="@+id/titleView"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/mainThemeColor"
        app:tbv_smaller_title="true"
        app:tbv_text="入场申请人脸采集" />

    <FrameLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <androidx.camera.view.PreviewView
            android:id="@+id/cameraPreView"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

        <TextView
            android:id="@+id/faceDetectTipsView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:layout_marginHorizontal="@dimen/dp_50"
            android:layout_marginBottom="90dp"
            android:background="@color/transparentBlack"
            android:gravity="center"
            android:paddingVertical="@dimen/dp_10"
            android:text="@string/unknown"
            android:textColor="@color/white"
            android:textSize="@dimen/sp_16" />
    </FrameLayout>
</LinearLayout>