wangzhibo
2026-08-30 af6b816e29ebe329c59cfdd368bf41d2a4940946
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#000000">
 
    <androidx.camera.view.PreviewView
        android:id="@+id/womp_preview"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
 
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="bottom"
        android:background="#CC000000"
        android:orientation="vertical"
        android:padding="16dp">
 
        <TextView
            android:id="@+id/womp_scan_hint"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="对准二维码扫描"
            android:textColor="#FFFFFF"
            android:textSize="16sp" />
 
        <Button
            android:id="@+id/womp_scan_cancel"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="12dp"
            android:text="停止 / 返回" />
    </LinearLayout>
</FrameLayout>