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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
17    android:id="@+id/layout_camera"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent"
20    android:orientation="vertical">
21
22    <FrameLayout
23        android:id="@+id/container"
24        android:layout_width="match_parent"
25        android:layout_height="0dp"
26        android:layout_weight="1">
27
28        <androidx.camera.view.PreviewView
29            android:id="@+id/preview_view"
30            android:layout_width="match_parent"
31            android:layout_height="match_parent" />
32
33        <ImageView
34            android:id="@+id/preview_snapshot"
35            android:layout_width="match_parent"
36            android:layout_height="match_parent"
37            android:scaleType="centerCrop" />
38    </FrameLayout>
39    <HorizontalScrollView
40        android:layout_width="wrap_content"
41        android:layout_height="wrap_content">
42
43        <LinearLayout
44            android:id="@+id/controller"
45            android:layout_width="wrap_content"
46            android:layout_height="wrap_content"
47            android:orientation="horizontal">
48
49            <Button
50                android:id="@+id/toggle_visibility"
51                android:layout_width="wrap_content"
52                android:layout_height="match_parent"
53                android:enabled="false"
54                android:text="@string/btn_remove_or_add" />
55
56            <Button
57                android:id="@+id/toggle_camera"
58                android:layout_width="wrap_content"
59                android:layout_height="match_parent"
60                android:enabled="false"
61                android:text="@string/btn_switch" />
62
63            <Spinner
64                android:id="@+id/scale_type"
65                android:layout_width="wrap_content"
66                android:layout_height="match_parent" />
67            <Button
68                android:id="@+id/target_rotation"
69                android:layout_width="wrap_content"
70                android:layout_height="match_parent"/>
71        </LinearLayout>
72    </HorizontalScrollView>
73</LinearLayout>
74