扫一扫

This commit is contained in:
2026-05-18 14:07:21 +08:00
parent 4c53c43f7b
commit a9fb39cfde
15 changed files with 102 additions and 529 deletions

View File

@@ -1,176 +0,0 @@
<?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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black">
<SurfaceView
android:id="@+id/surfaceView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#B2000000" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="#B2000000" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="0dp"
android:layout_height="250dp"
android:layout_weight="1"
android:background="#B2000000" />
<FrameLayout
android:layout_width="250dp"
android:layout_height="250dp">
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_scan_frame" />
<View
android:id="@+id/scanLine"
android:layout_width="match_parent"
android:layout_height="2dp"
android:background="@color/green" />
<View
android:layout_width="16dp"
android:layout_height="16dp"
android:background="@drawable/corner_top_left"
android:layout_gravity="top|left" />
<View
android:layout_width="16dp"
android:layout_height="16dp"
android:background="@drawable/corner_top_right"
android:layout_gravity="top|right" />
<View
android:layout_width="16dp"
android:layout_height="16dp"
android:background="@drawable/corner_bottom_left"
android:layout_gravity="bottom|left" />
<View
android:layout_width="16dp"
android:layout_height="16dp"
android:background="@drawable/corner_bottom_right"
android:layout_gravity="bottom|right" />
</FrameLayout>
<LinearLayout
android:layout_width="0dp"
android:layout_height="250dp"
android:layout_weight="1"
android:background="#B2000000" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:background="#B2000000" />
</LinearLayout>
<Button
android:id="@+id/btnBack"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_marginTop="40dp"
android:layout_marginLeft="16dp"
android:background="@drawable/back2"
android:contentDescription="返回" />
<TextView
android:id="@+id/tvScanTip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="550dp"
android:text="@string/scan_device_qr"
android:textColor="@color/white"
android:textSize="14sp" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="80dp"
android:orientation="horizontal">
<LinearLayout
android:id="@+id/llAlbum"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginRight="80dp"
android:background="@drawable/bg_button_circle"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:id="@+id/ivAlbum"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/album" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/album"
android:textColor="@color/white"
android:textSize="12sp" />
</LinearLayout>
<LinearLayout
android:id="@+id/llFlashlight"
android:layout_width="80dp"
android:layout_height="80dp"
android:layout_marginLeft="80dp"
android:background="@drawable/bg_button_circle"
android:gravity="center"
android:orientation="vertical">
<ImageView
android:id="@+id/ivFlashlight"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/flashlight" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="4dp"
android:text="@string/flashlight"
android:textColor="@color/white"
android:textSize="12dp" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>

View File

@@ -53,11 +53,10 @@
android:layout_margin="16dp"
android:padding="16dp">
<!-- 虚线边框 -->
<!-- 虚线边框 android:background="@drawable/bg_scan_frame"-->
<View
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_scan_frame" />
android:layout_height="match_parent" />
<!-- 人体模型图片 -->
<ImageView