1<?xml version="1.0" encoding="utf-8"?> 2 3<!-- Copyright (C) 2012 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<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 18 android:fitsSystemWindows="true" 19 android:layout_width="fill_parent" 20 android:layout_height="fill_parent" 21 android:gravity="bottom" 22 android:orientation="vertical" > 23 24 <LinearLayout 25 android:layout_width="fill_parent" 26 android:layout_height="0dp" 27 android:layout_weight="1" 28 android:gravity="bottom" 29 android:orientation="horizontal" > 30 31 <LinearLayout 32 android:layout_width="0dp" 33 android:layout_height="fill_parent" 34 android:layout_weight="3" 35 android:gravity="center_vertical|center_horizontal" 36 android:orientation="vertical" > 37 38 <SurfaceView 39 android:id="@+id/camera_view" 40 android:layout_width="fill_parent" 41 android:layout_height="fill_parent" 42 android:layout_weight="4" /> 43 44 <TextView 45 android:id="@+id/preview_label" 46 android:layout_width="wrap_content" 47 android:layout_height="wrap_content" 48 android:gravity="bottom" 49 android:padding="2dp" 50 android:text="@string/co_preview_label" 51 android:textSize="16sp" /> 52 53 </LinearLayout> 54 55 <LinearLayout 56 android:layout_width="0dp" 57 android:layout_height="fill_parent" 58 android:layout_weight="3" 59 android:gravity="center_vertical|center_horizontal" 60 android:orientation="vertical" > 61 62 <ImageView 63 android:id="@+id/format_view" 64 android:layout_height="fill_parent" 65 android:layout_width="fill_parent" 66 android:layout_weight="4" 67 android:scaleType="fitCenter" /> 68 69 <TextView 70 android:id="@+id/format_label" 71 android:layout_width="wrap_content" 72 android:layout_height="wrap_content" 73 android:gravity="bottom" 74 android:padding="2dp" 75 android:text="@string/co_format_label" 76 android:textSize="16sp" /> 77 78 </LinearLayout> 79 80 <LinearLayout 81 android:layout_width="0dp" 82 android:layout_height="fill_parent" 83 android:layout_weight="2" 84 android:gravity="bottom" 85 android:orientation="vertical" > 86 87 <TextView 88 android:id="@+id/camera_text" 89 android:layout_width="wrap_content" 90 android:layout_height="wrap_content" 91 android:text="@string/co_camera_label" /> 92 93 <TextView 94 android:id="@+id/orientation_text" 95 android:layout_width="wrap_content" 96 android:layout_height="wrap_content" 97 android:text="@string/co_orientation_label" /> 98 99 <LinearLayout 100 android:layout_width="match_parent" 101 android:layout_height="match_parent" 102 android:gravity="bottom" 103 android:orientation="vertical" > 104 105 <TextView 106 android:id="@+id/instruction_header" 107 android:layout_width="wrap_content" 108 android:layout_height="wrap_content" 109 android:text="@string/co_instruction_heading_label" /> 110 111 <TextView 112 android:id="@+id/instruction_text" 113 android:layout_width="wrap_content" 114 android:layout_height="wrap_content" 115 android:text="@string/co_instruction_text_photo_label" /> 116 117 <TextView 118 android:id="@+id/instruction_extra_text" 119 android:layout_width="wrap_content" 120 android:layout_height="wrap_content" /> 121 122 <Button 123 android:id="@+id/take_picture_button" 124 android:layout_width="match_parent" 125 android:layout_height="wrap_content" 126 android:enabled="false" 127 android:text="@string/co_photo_button_caption" /> 128 129 </LinearLayout> 130 131 </LinearLayout> 132 133 </LinearLayout> 134 135 <include layout="@layout/pass_fail_buttons" /> 136 137</LinearLayout> 138