1<?xml version="1.0" encoding="utf-8"?><!--
2  Copyright 2024 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
18    android:layout_width="match_parent"
19    android:layout_height="match_parent">
20    <RelativeLayout
21        android:layout_width="0dp"
22        android:layout_weight="1"
23        android:layout_height="match_parent">
24        <androidx.camera.view.PreviewView
25            android:id="@+id/preview_view"
26            android:layout_width="match_parent"
27            android:layout_height="match_parent"/>
28        <LinearLayout
29            android:layout_width="match_parent"
30            android:layout_height="wrap_content"
31            android:layout_alignParentBottom="true"
32            android:gravity="center_horizontal">
33            <SeekBar
34                android:id="@+id/slider"
35                android:layout_width="100dp"
36                android:layout_height="30dp"
37                android:layout_margin="15dp"/>
38            <ToggleButton
39                android:id="@+id/hdr"
40                android:layout_width="wrap_content"
41                android:layout_height="wrap_content"
42                android:textOn="@string/toggle_hdr_on"
43                android:textOff="@string/toggle_hdr_off"
44                android:layout_margin="15dp"/>
45            <ToggleButton
46                android:id="@+id/flip"
47                android:layout_width="wrap_content"
48                android:layout_height="wrap_content"
49                android:textOn="@string/toggle_camera_front"
50                android:textOff="@string/toggle_camera_back"
51                android:layout_margin="15dp"/>
52            <Button
53                android:id="@+id/record"
54                android:layout_width="wrap_content"
55                android:layout_height="wrap_content"
56                android:text="@string/btn_video_record"
57                android:layout_margin="15dp"/>
58        </LinearLayout>
59    </RelativeLayout>
60</LinearLayout>
61