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    <ScrollView
33        android:id="@+id/scroll_log"
34        android:layout_width="0dp"
35        android:layout_height="0dp"
36        android:layout_marginStart="8dp"
37        android:layout_marginTop="8dp"
38        android:layout_marginEnd="8dp"
39        android:layout_marginBottom="8dp"
40        android:background="@drawable/rounded_frame"
41        app:layout_constraintBottom_toTopOf="@id/guideline_horizontal"
42        app:layout_constraintEnd_toEndOf="parent"
43        app:layout_constraintStart_toStartOf="parent"
44        app:layout_constraintTop_toTopOf="parent">
45
46        <LinearLayout
47            android:layout_width="match_parent"
48            android:layout_height="wrap_content"
49            android:orientation="vertical">
50
51            <TextView
52                android:id="@+id/text_log"
53                android:layout_width="match_parent"
54                android:layout_height="wrap_content"
55                android:ems="10"
56                android:text="@string/log_initial" />
57        </LinearLayout>
58    </ScrollView>
59
60    <ProgressBar
61        android:id="@+id/progress_test"
62        style="@android:style/Widget.DeviceDefault.Light.ProgressBar.Horizontal"
63        android:layout_width="0dp"
64        android:layout_height="wrap_content"
65        android:layout_marginStart="8dp"
66        android:layout_marginTop="8dp"
67        android:layout_marginEnd="8dp"
68        android:layout_marginBottom="8dp"
69        android:indeterminate="false"
70        android:visibility="invisible"
71        app:layout_constraintBottom_toBottomOf="parent"
72        app:layout_constraintEnd_toEndOf="parent"
73        app:layout_constraintStart_toStartOf="parent"
74        app:layout_constraintTop_toBottomOf="@+id/guideline_progress" />
75
76    <androidx.camera.integration.antelope.AutoFitSurfaceView
77        android:id="@+id/surface_preview"
78        android:layout_width="0dp"
79        android:layout_height="0dp"
80        android:layout_marginStart="16dp"
81        android:layout_marginTop="8dp"
82        android:layout_marginEnd="8dp"
83        android:layout_marginBottom="8dp"
84        app:layout_constraintBottom_toTopOf="@id/guideline_progress"
85        app:layout_constraintEnd_toStartOf="@id/guideline_vertical"
86        app:layout_constraintStart_toStartOf="parent"
87        app:layout_constraintTop_toBottomOf="@+id/guideline_horizontal" />
88
89    <androidx.camera.integration.antelope.AutoFitTextureView
90        android:id="@+id/texture_preview"
91        android:layout_width="0dp"
92        android:layout_height="0dp"
93        android:layout_marginStart="16dp"
94        android:layout_marginTop="8dp"
95        android:layout_marginEnd="8dp"
96        android:layout_marginBottom="8dp"
97        android:visibility="invisible"
98        app:layout_constraintBottom_toTopOf="@id/guideline_progress"
99        app:layout_constraintEnd_toStartOf="@id/guideline_vertical"
100        app:layout_constraintStart_toStartOf="parent"
101        app:layout_constraintTop_toBottomOf="@+id/guideline_horizontal" />
102
103    <androidx.constraintlayout.widget.Guideline
104        android:id="@+id/guideline_progress"
105        android:layout_width="wrap_content"
106        android:layout_height="wrap_content"
107        android:orientation="horizontal"
108        app:layout_constraintGuide_percent="0.96" />
109
110
111    <Button
112        android:id="@+id/button_single"
113        android:layout_width="0dp"
114        android:layout_height="wrap_content"
115        android:layout_marginTop="8dp"
116        android:layout_marginEnd="8dp"
117        android:includeFontPadding="false"
118        android:minHeight="20dp"
119        android:text="@string/button_single_test"
120        app:layout_constraintEnd_toEndOf="parent"
121        app:layout_constraintStart_toStartOf="@+id/button_multi"
122        app:layout_constraintTop_toBottomOf="@+id/guideline_horizontal" />
123
124    <Button
125        android:id="@+id/button_multi"
126        android:layout_width="0dp"
127        android:layout_height="wrap_content"
128        android:layout_marginTop="8dp"
129        android:layout_marginEnd="8dp"
130        android:includeFontPadding="false"
131        android:minHeight="20dp"
132        android:text="@string/button_multi_test"
133        app:layout_constraintEnd_toEndOf="parent"
134        app:layout_constraintTop_toBottomOf="@+id/button_single" />
135
136    <Button
137        android:id="@+id/button_abort"
138        android:layout_width="0dp"
139        android:layout_height="wrap_content"
140        android:layout_marginEnd="8dp"
141        android:includeFontPadding="false"
142        android:minHeight="20dp"
143        android:text="@string/button_abort"
144        app:layout_constraintBottom_toTopOf="@id/guideline_progress"
145        app:layout_constraintEnd_toEndOf="parent" />
146
147    <androidx.constraintlayout.widget.Guideline
148        android:id="@+id/guideline_vertical"
149        android:layout_width="wrap_content"
150        android:layout_height="wrap_content"
151        android:orientation="vertical"
152        app:layout_constraintGuide_percent="0.5" />
153
154
155</androidx.constraintlayout.widget.ConstraintLayout>