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:orientation="vertical" 20 android:layout_width="fill_parent" 21 android:layout_height="fill_parent"> 22 23 <LinearLayout 24 android:orientation="horizontal" 25 android:layout_width="fill_parent" 26 android:layout_height="0dp" 27 android:layout_weight="1" > 28 29 <LinearLayout 30 android:orientation="vertical" 31 android:layout_width="0dp" 32 android:layout_height="fill_parent" 33 android:layout_weight="2" > 34 35 <Spinner 36 android:id="@+id/cameras_selection" 37 android:layout_width="fill_parent" 38 android:layout_height="wrap_content"/> 39 <Spinner 40 android:id="@+id/resolution_selection" 41 android:layout_width="fill_parent" 42 android:layout_height="wrap_content"/> 43 44 <LinearLayout 45 android:orientation="horizontal" 46 android:layout_width="match_parent" 47 android:layout_height="0dp" 48 android:layout_weight="1" > 49 50 <Button 51 android:id="@+id/record_button" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:text="@string/record_button_text"/> 55 <Button 56 android:id="@+id/next_button" 57 android:layout_height="wrap_content" 58 android:layout_width="wrap_content" 59 android:text="@string/next_button_text" /> 60 </LinearLayout> 61 62 <LinearLayout 63 android:layout_width="match_parent" 64 android:layout_height="0dp" 65 android:layout_weight="2" > 66 67 <TextView 68 android:id="@+id/status_label" 69 android:layout_width="wrap_content" 70 android:layout_height="wrap_content" 71 android:text="@string/status_ready" 72 android:padding="2dp" 73 android:textSize="16sp" 74 android:gravity="center" /> 75 </LinearLayout> 76 77 </LinearLayout> 78 79 </LinearLayout> 80 81 <LinearLayout 82 android:orientation="horizontal" 83 android:layout_width="fill_parent" 84 android:layout_height="0dp" 85 android:layout_weight="1" > 86 87 <LinearLayout 88 android:orientation="vertical" 89 android:layout_width="0dp" 90 android:layout_height="fill_parent" 91 android:layout_weight="3" 92 android:gravity="center" > 93 94 <TextureView 95 android:id="@+id/video_capture" 96 android:layout_height="0dp" 97 android:layout_width="fill_parent" 98 android:layout_weight="3" /> 99 <TextView 100 android:id="@+id/camera_video_capture_label" 101 android:layout_height="wrap_content" 102 android:layout_width="fill_parent" 103 android:text="@string/video_capture_label" 104 android:padding="2dp" 105 android:textSize="16sp" 106 android:gravity="center" /> 107 108 </LinearLayout> 109 <LinearLayout 110 android:orientation="vertical" 111 android:layout_width="0dp" 112 android:layout_height="fill_parent" 113 android:layout_weight="3" 114 android:gravity="center" > 115 116 <LinearLayout 117 android:orientation="vertical" 118 android:layout_width="fill_parent" 119 android:layout_height="0dp" 120 android:layout_weight="3" 121 android:gravity="center" > 122 123 <VideoView 124 android:id="@+id/video_playback" 125 android:layout_alignParentLeft="true" 126 android:layout_alignParentRight="true" 127 android:layout_centerInParent="true" 128 android:layout_height="wrap_content" 129 android:layout_width="match_parent" 130 android:focusable="false" 131 android:focusableInTouchMode="false" /> 132 133 </LinearLayout> 134 135 <TextView 136 android:id="@+id/camera_video_playback_label" 137 android:layout_height="wrap_content" 138 android:layout_width="fill_parent" 139 android:text="@string/video_playback_label" 140 android:padding="2dp" 141 android:textSize="16sp" 142 android:gravity="center" /> 143 144 </LinearLayout> 145 146 </LinearLayout> 147 148 <include layout="@layout/pass_fail_buttons" /> 149 150</LinearLayout> 151