1<?xml version="1.0" encoding="utf-8"?><!--
2  ~ Copyright 2019 The Android Open Source Project
3  ~
4  ~ Licensed under the Apache License, Version 2.0 (the "License");
5  ~ you may not use this file except in compliance with the License.
6  ~ You may obtain a copy of the License at
7  ~
8  ~     http://www.apache.org/licenses/LICENSE-2.0
9  ~
10  ~ Unless required by applicable law or agreed to in writing, software
11  ~ distributed under the License is distributed on an "AS IS" BASIS,
12  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  ~ See the License for the specific language governing permissions and
14  ~ limitations under the License.
15  -->
16
17<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    xmlns:app="http://schemas.android.com/apk/res-auto"
19    xmlns:tools="http://schemas.android.com/tools"
20    android:id="@+id/constraint_main"
21    android:layout_width="match_parent"
22    android:layout_height="match_parent"
23    tools:context=".MainActivity">
24
25    <androidx.constraintlayout.widget.Guideline
26        android:id="@+id/guideline_horizontal"
27        android:layout_width="wrap_content"
28        android:layout_height="wrap_content"
29        android:orientation="horizontal"
30        app:layout_constraintGuide_percent="0.60" />
31
32    <androidx.constraintlayout.widget.Guideline
33        android:id="@+id/guideline_vertical"
34        android:layout_width="wrap_content"
35        android:layout_height="wrap_content"
36        android:orientation="vertical"
37        app:layout_constraintGuide_percent="0.65" />
38
39    <androidx.constraintlayout.widget.Guideline
40        android:id="@+id/guideline_progress"
41        android:layout_width="wrap_content"
42        android:layout_height="wrap_content"
43        android:orientation="horizontal"
44        app:layout_constraintGuide_percent="0.96" />
45
46    <ScrollView
47        android:id="@+id/scroll_log"
48        android:layout_width="0dp"
49        android:layout_height="0dp"
50        android:layout_marginStart="8dp"
51        android:layout_marginTop="8dp"
52        android:layout_marginEnd="8dp"
53        android:layout_marginBottom="8dp"
54        android:background="@drawable/rounded_frame"
55        app:layout_constraintBottom_toBottomOf="parent"
56        app:layout_constraintEnd_toEndOf="@id/guideline_vertical"
57        app:layout_constraintStart_toStartOf="parent"
58        app:layout_constraintTop_toTopOf="parent">
59
60        <LinearLayout
61            android:layout_width="match_parent"
62            android:layout_height="wrap_content"
63            android:orientation="vertical">
64
65            <TextView
66                android:id="@+id/text_log"
67                android:layout_width="match_parent"
68                android:layout_height="wrap_content"
69                android:ems="10"
70                android:text="@string/log_initial" />
71        </LinearLayout>
72    </ScrollView>
73
74    <ProgressBar
75        android:id="@+id/progress_test"
76        style="@android:style/Widget.DeviceDefault.Light.ProgressBar.Horizontal"
77        android:layout_width="0dp"
78        android:layout_height="wrap_content"
79        android:layout_marginStart="8dp"
80        android:layout_marginTop="8dp"
81        android:layout_marginEnd="8dp"
82        android:layout_marginBottom="8dp"
83        android:indeterminate="false"
84        android:visibility="invisible"
85        app:layout_constraintBottom_toBottomOf="parent"
86        app:layout_constraintEnd_toEndOf="parent"
87        app:layout_constraintStart_toStartOf="@id/guideline_vertical"
88        app:layout_constraintTop_toBottomOf="@+id/guideline_progress" />
89
90    <androidx.camera.integration.antelope.AutoFitSurfaceView
91        android:id="@+id/surface_preview"
92        android:layout_width="0dp"
93        android:layout_height="0dp"
94        android:layout_marginStart="16dp"
95        android:layout_marginTop="8dp"
96        android:layout_marginEnd="8dp"
97        android:layout_marginBottom="8dp"
98        app:layout_constraintBottom_toTopOf="@id/button_single"
99        app:layout_constraintEnd_toEndOf="parent"
100        app:layout_constraintStart_toStartOf="@id/guideline_vertical"
101        app:layout_constraintTop_toTopOf="parent" />
102
103    <androidx.camera.integration.antelope.AutoFitTextureView
104        android:id="@+id/texture_preview"
105        android:layout_width="0dp"
106        android:layout_height="0dp"
107        android:layout_marginStart="16dp"
108        android:layout_marginTop="8dp"
109        android:layout_marginEnd="8dp"
110        android:layout_marginBottom="8dp"
111        android:visibility="invisible"
112        app:layout_constraintBottom_toTopOf="@id/button_single"
113        app:layout_constraintEnd_toEndOf="parent"
114        app:layout_constraintStart_toStartOf="@id/guideline_vertical"
115        app:layout_constraintTop_toTopOf="parent" />
116
117
118    <Button
119        android:id="@+id/button_single"
120        android:layout_width="0dp"
121        android:layout_height="wrap_content"
122        android:layout_marginTop="8dp"
123        android:layout_marginEnd="8dp"
124        android:includeFontPadding="false"
125        android:minHeight="20dp"
126        android:text="@string/button_single_test"
127        app:layout_constraintBottom_toTopOf="@+id/button_multi"
128        app:layout_constraintEnd_toEndOf="parent"
129        app:layout_constraintStart_toStartOf="@+id/button_multi" />
130
131    <Button
132        android:id="@+id/button_multi"
133        android:layout_width="0dp"
134        android:layout_height="wrap_content"
135        android:layout_marginTop="8dp"
136        android:layout_marginEnd="8dp"
137        android:includeFontPadding="false"
138        android:minHeight="20dp"
139        android:text="@string/button_multi_test"
140        app:layout_constraintBottom_toTopOf="@id/button_abort"
141        app:layout_constraintEnd_toEndOf="parent" />
142
143    <Button
144        android:id="@+id/button_abort"
145        android:layout_width="0dp"
146        android:layout_height="wrap_content"
147        android:layout_marginEnd="8dp"
148        android:includeFontPadding="false"
149        android:minHeight="20dp"
150        android:text="@string/button_abort"
151        app:layout_constraintBottom_toTopOf="@id/guideline_progress"
152        app:layout_constraintEnd_toEndOf="parent" />
153
154
155</androidx.constraintlayout.widget.ConstraintLayout>