|
|
@@ -0,0 +1,116 @@
|
|
|
+<?xml version="1.0" encoding="utf-8"?>
|
|
|
+<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:gravity="center"
|
|
|
+ app:cardBackgroundColor="@color/common_bg_white_60"
|
|
|
+ app:strokeColor="@color/common_transparent">
|
|
|
+
|
|
|
+ <RelativeLayout
|
|
|
+ android:layout_width="456dp"
|
|
|
+ android:layout_height="284dp"
|
|
|
+ android:padding="@dimen/common_spacing">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ android:id="@+id/tv_title"
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:text="@string/add_face"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size_big"
|
|
|
+ android:textStyle="bold" />
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:id="@+id/ll_action"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_centerHorizontal="true"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <com.grkj.iscs.view.widget.CommonBtn
|
|
|
+ android:id="@+id/cb_confirm"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:btn_bg="@drawable/common_btn_green_bg"
|
|
|
+ app:btn_name="@string/confirm" />
|
|
|
+
|
|
|
+ <com.grkj.iscs.view.widget.CommonBtn
|
|
|
+ android:id="@+id/cb_recapture"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ android:layout_marginHorizontal="@dimen/common_spacing"
|
|
|
+ android:visibility="gone"
|
|
|
+ app:btn_bg="@drawable/common_btn_blue_bg"
|
|
|
+ app:btn_name="@string/recapture" />
|
|
|
+
|
|
|
+ <com.grkj.iscs.view.widget.CommonBtn
|
|
|
+ android:id="@+id/cb_cancel"
|
|
|
+ android:layout_width="wrap_content"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:layout_alignParentRight="true"
|
|
|
+ android:layout_alignParentBottom="true"
|
|
|
+ app:btn_bg="@drawable/common_btn_red_bg"
|
|
|
+ app:btn_name="@string/cancel" />
|
|
|
+ </LinearLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_above="@id/ll_action"
|
|
|
+ android:layout_below="@id/tv_title"
|
|
|
+ android:layout_marginVertical="@dimen/common_spacing"
|
|
|
+ android:orientation="horizontal">
|
|
|
+
|
|
|
+ <FrameLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginHorizontal="@dimen/common_spacing_small"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/face_capture_tip_bg">
|
|
|
+
|
|
|
+ <androidx.camera.view.PreviewView
|
|
|
+ android:id="@+id/preview"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:visibility="invisible" />
|
|
|
+
|
|
|
+ <ImageView
|
|
|
+ android:id="@+id/image"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:scaleType="centerCrop" />
|
|
|
+ </FrameLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
+ android:layout_width="0dp"
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ android:layout_marginHorizontal="@dimen/common_spacing_small"
|
|
|
+ android:layout_weight="1"
|
|
|
+ android:background="@drawable/face_capture_tip_bg"
|
|
|
+ android:orientation="vertical"
|
|
|
+ android:padding="@dimen/common_spacing_small">
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:text="@string/capture_tip_title"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size_small" />
|
|
|
+
|
|
|
+ <TextView
|
|
|
+ style="@style/CommonTextView"
|
|
|
+ android:layout_marginTop="@dimen/common_spacing"
|
|
|
+ android:gravity="left"
|
|
|
+ android:text="@string/capture_tip_content"
|
|
|
+ android:textColor="@color/black"
|
|
|
+ android:textSize="@dimen/common_text_size_small" />
|
|
|
+ </LinearLayout>
|
|
|
+ </LinearLayout>
|
|
|
+ </RelativeLayout>
|
|
|
+</com.google.android.material.card.MaterialCardView>
|