1<?xml version="1.0" encoding="utf-8"?><!-- 2 Copyright 2023 The Android Open Source Project 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 http://www.apache.org/licenses/LICENSE-2.0 7 Unless required by applicable law or agreed to in writing, software 8 distributed under the License is distributed on an "AS IS" BASIS, 9 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 10 See the License for the specific language governing permissions and 11 limitations under the License. 12 --> 13<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 14 android:layout_width="match_parent" 15 android:layout_height="match_parent"> 16 <RelativeLayout 17 android:layout_width="0dp" 18 android:layout_weight="1" 19 android:layout_height="match_parent"> 20 <androidx.camera.view.PreviewView 21 android:id="@+id/preview_view" 22 android:layout_width="match_parent" 23 android:layout_height="match_parent"/> 24 <LinearLayout 25 android:layout_width="match_parent" 26 android:layout_height="wrap_content" 27 android:layout_alignParentBottom="true" 28 android:gravity="center_horizontal"> 29 <Button 30 android:id="@+id/flip" 31 android:layout_width="wrap_content" 32 android:layout_height="wrap_content" 33 android:text="@string/flip" 34 android:layout_margin="15dp"/> 35 <Button 36 android:id="@+id/capture" 37 android:layout_width="wrap_content" 38 android:layout_height="wrap_content" 39 android:text="@string/btn_capture" 40 android:layout_margin="15dp"/> 41 <Button 42 android:id="@+id/record" 43 android:layout_width="wrap_content" 44 android:layout_height="wrap_content" 45 android:text="@string/btn_video_record" 46 android:layout_margin="15dp"/> 47 </LinearLayout> 48 </RelativeLayout> 49 <LinearLayout 50 android:layout_width="wrap_content" 51 android:layout_height="match_parent" 52 android:orientation="vertical" 53 android:layout_margin="20dp"> 54 <LinearLayout 55 android:orientation="vertical" 56 android:layout_width="match_parent" 57 android:layout_weight="1" 58 android:layout_height="0dp"> 59 <TextView 60 android:layout_width="wrap_content" 61 android:layout_height="wrap_content" 62 android:textStyle="bold" 63 android:text="@string/preview_and_video"/> 64 <RadioGroup 65 android:id="@+id/preview_and_video_effect_group" 66 android:layout_width="wrap_content" 67 android:layout_height="wrap_content"> 68 <RadioButton 69 android:id="@+id/surface_effect_for_preview_video" 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:checked="true" 73 android:text="@string/surface_effect"/> 74 <RadioButton 75 android:id="@+id/no_effect_for_preview_video" 76 android:layout_width="wrap_content" 77 android:layout_height="wrap_content" 78 android:checked="false" 79 android:text="@string/no_effect"/> 80 </RadioGroup> 81 </LinearLayout> 82 <LinearLayout 83 android:orientation="vertical" 84 android:layout_width="match_parent" 85 android:layout_weight="1" 86 android:layout_height="0dp"> 87 <TextView 88 android:layout_width="wrap_content" 89 android:layout_height="wrap_content" 90 android:textStyle="bold" 91 android:text="@string/image_capture"/> 92 <RadioGroup 93 android:id="@+id/image_effect_group" 94 android:layout_width="wrap_content" 95 android:layout_height="wrap_content"> 96 <RadioButton 97 android:id="@+id/surface_effect_for_image_capture" 98 android:layout_width="wrap_content" 99 android:layout_height="wrap_content" 100 android:checked="false" 101 android:text="@string/surface_effect"/> 102 <RadioButton 103 android:id="@+id/image_effect_for_image_capture" 104 android:layout_width="wrap_content" 105 android:layout_height="wrap_content" 106 android:checked="true" 107 android:text="@string/image_effect"/> 108 <RadioButton 109 android:id="@+id/no_effect_for_image_capture" 110 android:layout_width="wrap_content" 111 android:layout_height="wrap_content" 112 android:checked="false" 113 android:text="@string/no_effect"/> 114 </RadioGroup> 115 </LinearLayout> 116 </LinearLayout> 117</LinearLayout> 118