• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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                android:scaleType="fitCenter" />
67
68            <TextView
69                android:id="@+id/format_label"
70                android:layout_width="wrap_content"
71                android:layout_height="wrap_content"
72                android:gravity="bottom"
73                android:padding="2dp"
74                android:text="@string/co_format_label"
75                android:textSize="16sp" />
76
77        </LinearLayout>
78
79        <LinearLayout
80            android:layout_width="0dp"
81            android:layout_height="fill_parent"
82            android:layout_weight="2"
83            android:gravity="bottom"
84            android:orientation="vertical" >
85
86            <TextView
87                android:id="@+id/camera_text"
88                android:layout_width="wrap_content"
89                android:layout_height="wrap_content"
90                android:text="@string/co_camera_label" />
91
92            <TextView
93                android:id="@+id/orientation_text"
94                android:layout_width="wrap_content"
95                android:layout_height="wrap_content"
96                android:text="@string/co_orientation_label" />
97
98            <LinearLayout
99                android:layout_width="match_parent"
100                android:layout_height="match_parent"
101                android:gravity="bottom"
102                android:orientation="vertical" >
103
104                <TextView
105                    android:id="@+id/instruction_header"
106                    android:layout_width="wrap_content"
107                    android:layout_height="wrap_content"
108                    android:text="@string/co_instruction_heading_label" />
109
110                <TextView
111                    android:id="@+id/instruction_text"
112                    android:layout_width="wrap_content"
113                    android:layout_height="wrap_content"
114                    android:text="@string/co_instruction_text_photo_label" />
115
116                <TextView
117                    android:id="@+id/instruction_extra_text"
118                    android:layout_width="wrap_content"
119                    android:layout_height="wrap_content" />
120
121                <Button
122                    android:id="@+id/take_picture_button"
123                    android:layout_width="match_parent"
124                    android:layout_height="wrap_content"
125                    android:enabled="false"
126                    android:text="@string/co_photo_button_caption" />
127
128            </LinearLayout>
129
130        </LinearLayout>
131
132    </LinearLayout>
133
134    <include layout="@layout/pass_fail_buttons" />
135
136</LinearLayout>
137