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