1<?xml version="1.0" encoding="utf-8"?><!--
2  Copyright 2023 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:gravity="center_horizontal">
34            <Button
35                android:id="@+id/flip"
36                android:layout_width="wrap_content"
37                android:layout_height="wrap_content"
38                android:text="@string/flip"
39                android:layout_margin="15dp"/>
40            <Button
41                android:id="@+id/capture"
42                android:layout_width="wrap_content"
43                android:layout_height="wrap_content"
44                android:text="@string/btn_capture"
45                android:layout_margin="15dp"/>
46            <Button
47                android:id="@+id/record"
48                android:layout_width="wrap_content"
49                android:layout_height="wrap_content"
50                android:text="@string/btn_video_record"
51                android:layout_margin="15dp"/>
52        </LinearLayout>
53    </RelativeLayout>
54    <LinearLayout
55        android:layout_width="match_parent"
56        android:layout_height="wrap_content"
57        android:layout_margin="20dp">
58        <LinearLayout
59            android:orientation="vertical"
60            android:layout_width="0dp"
61            android:layout_weight="1"
62            android:layout_height="match_parent">
63            <TextView
64                android:layout_width="wrap_content"
65                android:layout_height="wrap_content"
66                android:textStyle="bold"
67                android:text="@string/preview_and_video"/>
68            <RadioGroup
69                android:id="@+id/preview_and_video_effect_group"
70                android:layout_width="wrap_content"
71                android:layout_height="wrap_content">
72                <RadioButton
73                    android:id="@+id/surface_effect_for_preview_video"
74                    android:layout_width="wrap_content"
75                    android:layout_height="wrap_content"
76                    android:checked="true"
77                    android:text="@string/surface_effect"/>
78                <RadioButton
79                    android:id="@+id/no_effect_for_preview_video"
80                    android:layout_width="wrap_content"
81                    android:layout_height="wrap_content"
82                    android:checked="false"
83                    android:text="@string/no_effect"/>
84            </RadioGroup>
85        </LinearLayout>
86        <LinearLayout
87            android:orientation="vertical"
88            android:layout_width="0dp"
89            android:layout_weight="1"
90            android:layout_height="match_parent">
91            <TextView
92                android:layout_width="wrap_content"
93                android:layout_height="wrap_content"
94                android:textStyle="bold"
95                android:text="@string/image_capture"/>
96            <RadioGroup
97                android:id="@+id/image_effect_group"
98                android:layout_width="wrap_content"
99                android:layout_height="wrap_content">
100                <RadioButton
101                    android:id="@+id/surface_effect_for_image_capture"
102                    android:layout_width="wrap_content"
103                    android:layout_height="wrap_content"
104                    android:checked="false"
105                    android:text="@string/surface_effect"/>
106                <RadioButton
107                    android:id="@+id/image_effect_for_image_capture"
108                    android:layout_width="wrap_content"
109                    android:layout_height="wrap_content"
110                    android:checked="true"
111                    android:text="@string/image_effect"/>
112                <RadioButton
113                    android:id="@+id/no_effect_for_image_capture"
114                    android:layout_width="wrap_content"
115                    android:layout_height="wrap_content"
116                    android:checked="false"
117                    android:text="@string/no_effect"/>
118            </RadioGroup>
119        </LinearLayout>
120    </LinearLayout>
121</LinearLayout>