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: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="3" 34 android:gravity="center" > 35 36 <TextureView 37 android:id="@+id/video_capture" 38 android:layout_height="0dp" 39 android:layout_width="fill_parent" 40 android:layout_weight="3" /> 41 <TextView 42 android:id="@+id/camera_video_capture_label" 43 android:layout_height="wrap_content" 44 android:layout_width="fill_parent" 45 android:text="@string/video_capture_label" 46 android:padding="2dp" 47 android:textSize="16sp" 48 android:gravity="center" /> 49 50 </LinearLayout> 51 <LinearLayout 52 android:orientation="vertical" 53 android:layout_width="0dp" 54 android:layout_height="fill_parent" 55 android:layout_weight="3" 56 android:gravity="center" > 57 58 <VideoView 59 android:id="@+id/video_playback" 60 android:layout_height="0dp" 61 android:layout_width="fill_parent" 62 android:layout_weight="3" /> 63 <TextView 64 android:id="@+id/camera_video_playback_label" 65 android:layout_height="wrap_content" 66 android:layout_width="fill_parent" 67 android:text="@string/video_playback_label" 68 android:padding="2dp" 69 android:textSize="16sp" 70 android:gravity="center" /> 71 72 </LinearLayout> 73 74 <LinearLayout 75 android:orientation="vertical" 76 android:layout_width="0dp" 77 android:layout_height="fill_parent" 78 android:layout_weight="2" > 79 80 <Spinner 81 android:id="@+id/cameras_selection" 82 android:layout_width="fill_parent" 83 android:layout_height="wrap_content"/> 84 <Spinner 85 android:id="@+id/resolution_selection" 86 android:layout_width="fill_parent" 87 android:layout_height="wrap_content"/> 88 <Button 89 android:id="@+id/record_button" 90 android:layout_width="wrap_content" 91 android:layout_height="wrap_content" 92 android:text="@string/record_button_text"/> 93 <TextView 94 android:id="@+id/status_label" 95 android:layout_width="wrap_content" 96 android:layout_height="wrap_content" 97 android:text="@string/status_ready" 98 android:padding="2dp" 99 android:textSize="16sp" 100 android:gravity="center" /> 101 102 </LinearLayout> 103 104 </LinearLayout> 105 106 <include layout="@layout/pass_fail_buttons" /> 107 108</LinearLayout> 109