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:orientation="vertical"
19    android:layout_width="match_parent"
20    android:layout_height="match_parent">
21    <RelativeLayout
22        android:layout_width="match_parent"
23        android:layout_weight="1"
24        android:layout_height="0dp">
25        <androidx.camera.view.PreviewView
26            android:id="@+id/preview_view"
27            android:layout_width="match_parent"
28            android:layout_height="match_parent"/>
29        <LinearLayout
30            android:layout_width="match_parent"
31            android:layout_height="wrap_content"
32            android:layout_alignParentBottom="true"
33            android:orientation="vertical"
34            android:gravity="center_horizontal">
35            <SeekBar
36                android:id="@+id/slider"
37                android:layout_width="match_parent"
38                android:layout_height="50dp"
39                android:layout_margin="15dp"
40                android:min="-100"
41                android:max="100"
42                android:progress="0"/>
43            <ToggleButton
44                android:id="@+id/hdr"
45                android:layout_width="wrap_content"
46                android:layout_height="wrap_content"
47                android:textOn="@string/toggle_hdr_on"
48                android:textOff="@string/toggle_hdr_off"
49                android:layout_margin="15dp"/>
50            <ToggleButton
51                android:id="@+id/flip"
52                android:layout_width="wrap_content"
53                android:layout_height="wrap_content"
54                android:textOn="@string/toggle_camera_front"
55                android:textOff="@string/toggle_camera_back"
56                android:layout_margin="15dp"/>
57            <Button
58                android:id="@+id/record"
59                android:layout_width="wrap_content"
60                android:layout_height="wrap_content"
61                android:text="@string/btn_video_record"
62                android:layout_margin="15dp"/>
63        </LinearLayout>
64    </RelativeLayout>
65</LinearLayout>