summaryrefslogtreecommitdiff
path: root/tflite/src/main/res/layout
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-04-24 16:42:18 +0200
committererdgeist <erdgeist@erdgeist.org>2026-04-24 16:42:18 +0200
commitb4695e613f0bca451485f95572f23d464b56a95e (patch)
treef893b2035458b47a9b8bbdb3a78205511d2ce3c5 /tflite/src/main/res/layout
Initial importmain
Diffstat (limited to 'tflite/src/main/res/layout')
-rw-r--r--tflite/src/main/res/layout/activity_camera.xml72
1 files changed, 72 insertions, 0 deletions
diff --git a/tflite/src/main/res/layout/activity_camera.xml b/tflite/src/main/res/layout/activity_camera.xml
new file mode 100644
index 0000000..c094f94
--- /dev/null
+++ b/tflite/src/main/res/layout/activity_camera.xml
@@ -0,0 +1,72 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 ~ Copyright 2020 Google LLC
4 ~
5 ~ Licensed under the Apache License, Version 2.0 (the "License");
6 ~ you may not use this file except in compliance with the License.
7 ~ You may obtain a copy of the License at
8 ~
9 ~ https://www.apache.org/licenses/LICENSE-2.0
10 ~
11 ~ Unless required by applicable law or agreed to in writing, software
12 ~ distributed under the License is distributed on an "AS IS" BASIS,
13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 ~ See the License for the specific language governing permissions and
15 ~ limitations under the License.
16 -->
17<androidx.constraintlayout.widget.ConstraintLayout
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:app="http://schemas.android.com/apk/res-auto"
20 xmlns:tools="http://schemas.android.com/tools"
21 android:id="@+id/camera_container"
22 android:background="@android:color/black"
23 android:layout_width="match_parent"
24 android:layout_height="match_parent">
25
26 <androidx.camera.view.PreviewView
27 android:id="@+id/view_finder"
28 android:layout_width="match_parent"
29 android:layout_height="match_parent"/>
30
31 <ImageView
32 android:id="@+id/image_predicted"
33 android:layout_width="match_parent"
34 android:layout_height="match_parent"
35 android:scaleType="centerCrop"
36 android:visibility="gone" />
37
38 <TextView
39 android:id="@+id/text_prediction"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:layout_marginTop="@dimen/margin_xsmall"
43 app:layout_constraintTop_toTopOf="parent"
44 app:layout_constraintStart_toStartOf="parent"
45 app:layout_constraintEnd_toEndOf="parent"
46 android:textAllCaps="true"
47 android:textAppearance="@style/TextAppearance.AppCompat.Display1"
48 android:text="@string/unknown" />
49
50 <View
51 android:id="@+id/box_prediction"
52 android:layout_width="0dp"
53 android:layout_height="0dp"
54 android:background="@drawable/shape_rectangle"
55 app:layout_constraintTop_toTopOf="parent"
56 app:layout_constraintStart_toStartOf="parent" />
57
58 <!-- Camera control buttons -->
59
60 <ImageButton
61 android:id="@+id/camera_capture_button"
62 android:layout_width="@dimen/round_button_large"
63 android:layout_height="@dimen/round_button_large"
64 android:layout_marginBottom="@dimen/shutter_button_margin"
65 android:scaleType="fitCenter"
66 android:background="@drawable/ic_shutter"
67 app:layout_constraintLeft_toLeftOf="parent"
68 app:layout_constraintRight_toRightOf="parent"
69 app:layout_constraintBottom_toBottomOf="parent"
70 android:contentDescription="@string/capture_button_alt" />
71
72</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file