From 8ff90d87687b6d38158809aae776b6c709d7b60a Mon Sep 17 00:00:00 2001
From: weimingfei <fei_gaming@sina.com>
Date: 星期四, 04 十二月 2025 12:01:41 +0800
Subject: [PATCH] 指纹钥匙柜
---
keyCabinet-android/app/src/main/res/layout/face_activity.xml | 372 ++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 324 insertions(+), 48 deletions(-)
diff --git a/keyCabinet-android/app/src/main/res/layout/face_activity.xml b/keyCabinet-android/app/src/main/res/layout/face_activity.xml
index 53880b2..a3c6e6d 100644
--- a/keyCabinet-android/app/src/main/res/layout/face_activity.xml
+++ b/keyCabinet-android/app/src/main/res/layout/face_activity.xml
@@ -17,6 +17,18 @@
android:background="@color/white"
>
+ <EditText
+ android:id="@+id/et_ewm"
+ android:layout_width="100dp"
+ android:layout_height="wrap_content"
+ android:text=""
+ android:inputType="number"
+ app:layout_constraintTop_toTopOf="@+id/viewBack"
+ app:layout_constraintBottom_toBottomOf="@+id/viewBack"
+ app:layout_constraintStart_toStartOf="parent"
+ android:background="@null"
+ />
+
<View
android:id="@+id/viewBack"
android:layout_width="0dp"
@@ -208,13 +220,57 @@
</androidx.constraintlayout.widget.ConstraintLayout>
<androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
+ android:id="@+id/cl_zw_gl"
+ android:layout_width="0dp"
+ android:layout_height="75dp"
+ android:layout_marginLeft="30dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ android:layout_marginBottom="30dp"
+ android:background="@drawable/shape_r30_face_bg"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintRight_toLeftOf="@+id/cl_sk_gl"
+ app:commandType="@{9}"
+ app:onClickCommand="@{model.myTypeCommand}"
+ >
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ >
+
+ <ImageView
+ android:layout_width="28dp"
+ android:layout_height="28dp"
+ android:src="@mipmap/ic_zhiwen"
+ android:layout_gravity="center_vertical"/>
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="鎸囩汗楠岃瘉"
+ android:textColor="#ff279baa"
+ android:textSize="24sp"
+ android:textStyle="bold"
+ android:layout_marginLeft="12dp"/>
+
+ </LinearLayout>
+
+ </androidx.constraintlayout.widget.ConstraintLayout>
+
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:id="@+id/cl_sk_gl"
+ android:layout_width="0dp"
android:layout_height="75dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="30dp"
android:background="@drawable/shape_r30_face_bg"
+ app:layout_constraintLeft_toRightOf="@+id/cl_zw_gl"
+ app:layout_constraintRight_toRightOf="parent"
app:commandType="@{1}"
app:onClickCommand="@{model.myTypeCommand}"
>
@@ -240,14 +296,15 @@
android:textColor="#ff279baa"
android:textSize="24sp"
android:textStyle="bold"
- android:layout_marginLeft="7dp"/>
+ android:layout_marginLeft="12dp"/>
</LinearLayout>
+
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
-
+ <!--浜鸿劯楠岃瘉-->
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_fail"
android:layout_width="wrap_content"
@@ -296,6 +353,7 @@
</androidx.constraintlayout.widget.ConstraintLayout>
+ <!-- 鍙告満閫夐獙璇佹柟寮� -->
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_sj_xuan"
android:layout_width="match_parent"
@@ -412,35 +470,86 @@
android:layout_marginBottom="30dp"
android:visibility="visible">
- <LinearLayout
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:id="@+id/cl_zw_sj"
+ android:layout_width="0dp"
+ android:layout_height="75dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ android:background="@drawable/shape_r30_face_bg"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintRight_toLeftOf="@+id/ll_01"
+ android:layout_marginRight="20dp"
+ app:commandType="@{10}"
+ app:onClickCommand="@{model.myTypeCommand}"
+ >
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ >
+
+ <ImageView
+ android:layout_width="28dp"
+ android:layout_height="28dp"
+ android:src="@mipmap/ic_zhiwen"
+ android:layout_gravity="center_vertical"/>
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="鎸囩汗"
+ android:textColor="#ff279baa"
+ android:textSize="24sp"
+ android:textStyle="bold"
+ android:layout_marginLeft="12dp"/>
+
+ </LinearLayout>
+
+ </androidx.constraintlayout.widget.ConstraintLayout>
+
+ <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/ll_01"
- android:layout_width="wrap_content"
+ android:layout_width="0dp"
android:layout_height="match_parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintLeft_toRightOf="@+id/cl_zw_sj"
+ app:layout_constraintRight_toLeftOf="@+id/ll_02"
android:background="@drawable/shape_r30_face_bg"
android:paddingLeft="30dp"
android:paddingRight="30dp"
app:commandType="@{2}"
app:onClickCommand="@{model.myTypeCommand}">
- <ImageView
- android:layout_width="28dp"
- android:layout_height="28dp"
- android:src="@mipmap/ic_shuaka"
- android:layout_gravity="center_vertical"/>
- <TextView
+ <LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="鍒峰崱楠岃瘉"
- android:textColor="#ff279baa"
- android:textSize="24sp"
- android:layout_marginLeft="7dp"
- android:textStyle="bold"
- android:layout_gravity="center_vertical"/>
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ >
- </LinearLayout>
+ <ImageView
+ android:layout_width="28dp"
+ android:layout_height="28dp"
+ android:src="@mipmap/ic_shuaka"
+ android:layout_gravity="center_vertical"/>
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="鍒峰崱"
+ android:textColor="#ff279baa"
+ android:textSize="24sp"
+ android:textStyle="bold"
+ android:layout_marginLeft="12dp"/>
+
+ </LinearLayout>
+
+ </androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:id="@+id/ll_02"
@@ -472,9 +581,9 @@
</androidx.constraintlayout.widget.ConstraintLayout>
-
+ <!--鎸囩汗楠岃瘉-->
<androidx.constraintlayout.widget.ConstraintLayout
- android:id="@+id/cl_card"
+ android:id="@+id/cl_zw"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintTop_toTopOf="@+id/camera_textureview"
@@ -482,51 +591,81 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:background="@color/white"
- android:visibility="visible">
-
- <EditText
- android:id="@+id/et_ewm"
- android:layout_width="100dp"
- android:layout_height="wrap_content"
- android:text=""
- android:inputType="number"
- app:layout_constraintTop_toTopOf="parent"
- app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintEnd_toEndOf="parent"
- android:background="@null"
- android:layout_marginTop="20dp"
- />
+ android:visibility="gone">
<View
- android:id="@+id/v_c_sl"
+ android:id="@+id/v_c_zw"
android:layout_width="340dp"
android:layout_height="340dp"
- android:background="@mipmap/ic_shuaka2"
+ android:background="@mipmap/ic_zhiwenyanzheng"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
/>
<TextView
- android:id="@+id/tv_c_tip"
+ android:id="@+id/tv_zw_tip"
android:layout_width="0dp"
android:layout_height="wrap_content"
- android:text="璇峰皢IC鍗¤创杩戝埛鍗″尯锛屽仠鐣�1-2绉�"
+ android:text="璇峰皢鎵嬫寚鏀剧疆鍦ㄦ寚绾归噰闆嗗櫒涓�"
android:textColor="#ff666666"
android:textSize="24sp"
android:gravity="center"
- app:layout_constraintTop_toBottomOf="@+id/v_c_sl"
+ app:layout_constraintTop_toBottomOf="@+id/v_c_zw"
android:layout_marginTop="42dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"/>
<androidx.constraintlayout.widget.ConstraintLayout
- android:layout_width="match_parent"
+ android:id="@+id/cl_sk_zw"
+ android:layout_width="0dp"
+ android:layout_height="75dp"
+ android:layout_marginLeft="30dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ android:layout_marginBottom="30dp"
+ android:background="@drawable/shape_r30_face_bg"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintRight_toLeftOf="@+id/cl_rl_zw"
+ app:commandType="@{1}"
+ app:onClickCommand="@{model.myTypeCommand}"
+ >
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ >
+
+ <ImageView
+ android:layout_width="28dp"
+ android:layout_height="28dp"
+ android:src="@mipmap/ic_shuaka"
+ android:layout_gravity="center_vertical"/>
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="鍒峰崱楠岃瘉"
+ android:textColor="#ff279baa"
+ android:textSize="24sp"
+ android:textStyle="bold"
+ android:layout_marginLeft="12dp"/>
+
+ </LinearLayout>
+ </androidx.constraintlayout.widget.ConstraintLayout>
+
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:id="@+id/cl_rl_zw"
+ android:layout_width="0dp"
android:layout_height="75dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="30dp"
+ app:layout_constraintLeft_toRightOf="@+id/cl_sk_zw"
+ app:layout_constraintRight_toRightOf="parent"
android:background="@drawable/shape_r30_face_bg"
app:commandType="@{4}"
app:onClickCommand="@{model.myTypeCommand}"
@@ -553,13 +692,132 @@
android:textColor="#ff279baa"
android:textSize="24sp"
android:textStyle="bold"
- android:layout_marginLeft="7dp"/>
+ android:layout_marginLeft="12dp"/>
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
+ <!--鍒峰崱楠岃瘉-->
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:id="@+id/cl_card"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ app:layout_constraintTop_toTopOf="@+id/camera_textureview"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ android:background="@color/white"
+ android:visibility="gone">
+
+ <View
+ android:id="@+id/v_c_sl"
+ android:layout_width="340dp"
+ android:layout_height="340dp"
+ android:background="@mipmap/ic_shuaka2"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ />
+
+ <TextView
+ android:id="@+id/tv_c_tip"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:text="璇峰皢IC鍗¤创杩戝埛鍗″尯锛屽仠鐣�1-2绉�"
+ android:textColor="#ff666666"
+ android:textSize="24sp"
+ android:gravity="center"
+ app:layout_constraintTop_toBottomOf="@+id/v_c_sl"
+ android:layout_marginTop="42dp"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"/>
+
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:id="@+id/cl_zw_sk"
+ android:layout_width="0dp"
+ android:layout_height="75dp"
+ android:layout_marginLeft="30dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ android:layout_marginBottom="30dp"
+ android:background="@drawable/shape_r30_face_bg"
+ app:layout_constraintLeft_toLeftOf="parent"
+ app:layout_constraintRight_toLeftOf="@+id/cl_rl_sk"
+ app:commandType="@{11}"
+ app:onClickCommand="@{model.myTypeCommand}"
+ >
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ >
+
+ <ImageView
+ android:layout_width="28dp"
+ android:layout_height="28dp"
+ android:src="@mipmap/ic_zhiwen"
+ android:layout_gravity="center_vertical"/>
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="鎸囩汗楠岃瘉"
+ android:textColor="#ff279baa"
+ android:textSize="24sp"
+ android:textStyle="bold"
+ android:layout_marginLeft="12dp"/>
+
+ </LinearLayout>
+ </androidx.constraintlayout.widget.ConstraintLayout>
+
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:id="@+id/cl_rl_sk"
+ android:layout_width="0dp"
+ android:layout_height="75dp"
+ android:layout_marginLeft="30dp"
+ android:layout_marginRight="30dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ android:layout_marginBottom="30dp"
+ app:layout_constraintLeft_toRightOf="@+id/cl_zw_sk"
+ app:layout_constraintRight_toRightOf="parent"
+ android:background="@drawable/shape_r30_face_bg"
+ app:commandType="@{4}"
+ app:onClickCommand="@{model.myTypeCommand}"
+ >
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ >
+
+ <ImageView
+ android:layout_width="28dp"
+ android:layout_height="28dp"
+ android:src="@mipmap/ic_renlian"
+ android:layout_gravity="center_vertical"/>
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:text="浜鸿劯楠岃瘉"
+ android:textColor="#ff279baa"
+ android:textSize="24sp"
+ android:textStyle="bold"
+ android:layout_marginLeft="12dp"/>
+
+ </LinearLayout>
+ </androidx.constraintlayout.widget.ConstraintLayout>
+
+ </androidx.constraintlayout.widget.ConstraintLayout>
+
+ <!--閰掔簿妫�娴�-->
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/cl_jiu"
android:layout_width="match_parent"
@@ -703,10 +961,10 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/shape_jiujin_ok"
- android:paddingLeft="80dp"
- android:paddingRight="80dp"
- android:paddingTop="50dp"
- android:paddingBottom="50dp"
+ android:paddingLeft="60dp"
+ android:paddingRight="60dp"
+ android:paddingTop="40dp"
+ android:paddingBottom="40dp"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
@@ -715,8 +973,8 @@
<pl.droidsonroids.gif.GifImageView
android:id="@+id/img_progress"
- android:layout_width="150dp"
- android:layout_height="150dp"
+ android:layout_width="90dp"
+ android:layout_height="90dp"
android:src="@mipmap/zhuanquan"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
@@ -736,5 +994,23 @@
</androidx.constraintlayout.widget.ConstraintLayout>
+ <TextView
+ android:id="@+id/message"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="@dimen/activity_vertical_margin"
+ android:layout_marginRight="@dimen/activity_vertical_margin"
+ android:text=""
+ android:textColor="@color/white"
+ android:textSize="24sp"
+ android:padding="@dimen/activity_horizontal_margin"
+ android:background="@drawable/toast_view_bg"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ android:gravity="center"
+ android:visibility="gone"/>
+
</androidx.constraintlayout.widget.ConstraintLayout>
</layout>
\ No newline at end of file
--
Gitblit v1.9.3