1<?xml version="1.0" encoding="utf-8"?> 2 3<!-- Copyright (C) 2022 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16--> 17 18<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 19 android:fitsSystemWindows="true" 20 android:orientation="vertical" 21 android:layout_width="fill_parent" 22 android:layout_height="fill_parent"> 23 24 <LinearLayout 25 android:orientation="horizontal" 26 android:layout_width="fill_parent" 27 android:layout_height="0dp" 28 android:layout_weight="1" > 29 30 <LinearLayout 31 android:orientation="vertical" 32 android:layout_width="0dp" 33 android:layout_height="fill_parent" 34 android:layout_weight="2" > 35 36 <Spinner 37 android:id="@+id/cameras_selection" 38 android:layout_width="fill_parent" 39 android:layout_height="wrap_content"/> 40 <Spinner 41 android:id="@+id/resolution_selection" 42 android:layout_width="fill_parent" 43 android:layout_height="wrap_content"/> 44 45 <LinearLayout 46 android:orientation="horizontal" 47 android:layout_width="match_parent" 48 android:layout_height="0dp" 49 android:layout_weight="1" > 50 51 <Button 52 android:id="@+id/record_button" 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:text="@string/record_button_text"/> 56 <Button 57 android:id="@+id/next_button" 58 android:layout_height="wrap_content" 59 android:layout_width="wrap_content" 60 android:text="@string/next_button_text" /> 61 </LinearLayout> 62 63 <LinearLayout 64 android:layout_width="match_parent" 65 android:layout_height="0dp" 66 android:layout_weight="2" > 67 68 <TextView 69 android:id="@+id/status_label" 70 android:layout_width="wrap_content" 71 android:layout_height="wrap_content" 72 android:text="@string/status_ready" 73 android:padding="2dp" 74 android:textSize="16sp" 75 android:gravity="center" /> 76 </LinearLayout> 77 78 </LinearLayout> 79 80 </LinearLayout> 81 82 <LinearLayout 83 android:orientation="horizontal" 84 android:layout_width="fill_parent" 85 android:layout_height="0dp" 86 android:layout_weight="1" > 87 88 <LinearLayout 89 android:orientation="vertical" 90 android:layout_width="0dp" 91 android:layout_height="fill_parent" 92 android:layout_weight="3" 93 android:gravity="center" > 94 95 <TextureView 96 android:id="@+id/video_capture" 97 android:layout_height="0dp" 98 android:layout_width="fill_parent" 99 android:layout_weight="3" /> 100 <TextView 101 android:id="@+id/camera_video_capture_label" 102 android:layout_height="wrap_content" 103 android:layout_width="fill_parent" 104 android:text="@string/video_capture_label" 105 android:padding="2dp" 106 android:textSize="16sp" 107 android:gravity="center" /> 108 109 </LinearLayout> 110 <LinearLayout 111 android:orientation="vertical" 112 android:layout_width="0dp" 113 android:layout_height="fill_parent" 114 android:layout_weight="3" 115 android:gravity="center" > 116 117 <LinearLayout 118 android:orientation="vertical" 119 android:layout_width="fill_parent" 120 android:layout_height="0dp" 121 android:layout_weight="3" 122 android:gravity="center" > 123 124 <VideoView 125 android:id="@+id/video_playback" 126 android:layout_alignParentLeft="true" 127 android:layout_alignParentRight="true" 128 android:layout_centerInParent="true" 129 android:layout_height="wrap_content" 130 android:layout_width="match_parent" 131 android:focusable="false" 132 android:focusableInTouchMode="false" /> 133 134 </LinearLayout> 135 136 <TextView 137 android:id="@+id/camera_video_playback_label" 138 android:layout_height="wrap_content" 139 android:layout_width="fill_parent" 140 android:text="@string/video_playback_label" 141 android:padding="2dp" 142 android:textSize="16sp" 143 android:gravity="center" /> 144 145 </LinearLayout> 146 147 </LinearLayout> 148 149 <include layout="@layout/pass_fail_buttons" /> 150 151</LinearLayout> 152