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