Skip to content

Commit a5d7b03

Browse files
committed
添加XML
1 parent b0591a0 commit a5d7b03

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

app/src/main/res/layout/activity_main.xml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,60 @@
55
android:layout_width="match_parent"
66
android:layout_height="match_parent">
77

8+
<com.wonderkiln.camerakit.CameraView
9+
android:id="@+id/cameraView"
10+
android:layout_width="300dp"
11+
android:layout_height="300dp"
12+
android:layout_gravity="center|top" />
13+
14+
15+
<LinearLayout
16+
android:layout_width="match_parent"
17+
android:layout_height="80dp"
18+
android:layout_gravity="center|top"
19+
android:layout_marginTop="300dp"
20+
android:gravity="center"
21+
android:orientation="horizontal">
22+
23+
<ImageView
24+
android:id="@+id/imageViewResult"
25+
android:layout_width="75dp"
26+
android:layout_height="75dp"
27+
android:padding="2dp" />
28+
29+
<TextView
30+
android:id="@+id/textViewResult"
31+
android:layout_width="match_parent"
32+
android:layout_height="80dp"
33+
android:fadeScrollbars="false"
34+
android:maxLines="15"
35+
android:scrollbars="vertical"
36+
android:gravity="center"
37+
android:textColor="@android:color/black" />
38+
39+
</LinearLayout>
40+
41+
42+
<Button
43+
android:id="@+id/btnToggleCamera"
44+
android:layout_width="match_parent"
45+
android:layout_height="48dp"
46+
android:layout_gravity="bottom|center"
47+
android:layout_marginBottom="50dp"
48+
android:text="@string/toggle_camera"
49+
android:textAllCaps="false"
50+
android:textColor="@android:color/black" />
51+
52+
<Button
53+
android:id="@+id/btnDetectObject"
54+
android:layout_width="match_parent"
55+
android:layout_height="48dp"
56+
android:layout_gravity="bottom|center"
57+
android:text="@string/detect_object"
58+
android:textAllCaps="false"
59+
android:textColor="@android:color/black"
60+
android:visibility="gone" />
61+
862
<Button
963
android:id="@+id/getButton"
1064
android:layout_width="wrap_content"

0 commit comments

Comments
 (0)