20738124bfbdffd80d8243a86493cd633ef493b7
[zxing.git] / android / res / layout / capture.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (C) 2008 ZXing authors
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 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
18              android:layout_width="fill_parent"
19              android:layout_height="fill_parent">
20
21   <SurfaceView android:id="@+id/preview_view"
22                android:layout_width="fill_parent"
23                android:layout_height="fill_parent"
24                android:layout_centerInParent="true"/>
25
26   <com.google.zxing.client.android.ViewfinderView
27       android:id="@+id/viewfinder_view"
28       android:layout_width="fill_parent"
29       android:layout_height="fill_parent"
30       android:background="@color/transparent"/>
31
32   <LinearLayout android:id="@+id/result_view"
33                 android:orientation="vertical"
34                 android:layout_width="fill_parent"
35                 android:layout_height="fill_parent"
36                 android:background="@color/result_view"
37                 android:visibility="gone"
38                 android:padding="4dip">
39
40     <LinearLayout
41         android:orientation="horizontal"
42         android:layout_width="fill_parent"
43         android:layout_height="wrap_content"
44         android:layout_weight="1"
45         android:gravity="top"
46         android:padding="12dip">
47
48       <LinearLayout
49           android:orientation="vertical"
50           android:layout_width="wrap_content"
51           android:layout_height="fill_parent"
52           android:gravity="right">
53
54         <ImageView android:id="@+id/barcode_image_view"
55                    android:layout_width="160dip"
56                    android:layout_height="wrap_content"
57                    android:maxWidth="160dip"
58                    android:maxHeight="160dip"
59                    android:layout_marginBottom="4dip"
60                    android:adjustViewBounds="true"
61                    android:scaleType="fitEnd"/>
62
63         <LinearLayout
64           android:orientation="horizontal"
65           android:layout_width="wrap_content"
66           android:layout_height="wrap_content">
67
68           <TextView android:id="@+id/format_text_view_label"
69                     android:layout_width="wrap_content"
70                     android:layout_height="wrap_content"
71                     android:text="@string/msg_default_format"
72                     android:textColor="@color/result_minor_text"
73                     android:textStyle="bold"
74                     android:textSize="14sp"
75                     android:paddingRight="4dip"/>
76
77           <TextView android:id="@+id/format_text_view"
78                     android:layout_width="wrap_content"
79                     android:layout_height="wrap_content"
80                     android:textColor="@color/result_minor_text"
81                     android:textSize="14sp"/>
82
83         </LinearLayout>
84
85         <LinearLayout
86           android:orientation="horizontal"
87           android:layout_width="wrap_content"
88           android:layout_height="wrap_content">
89
90           <TextView android:id="@+id/type_text_view_label"
91                     android:layout_width="wrap_content"
92                     android:layout_height="wrap_content"
93                     android:text="@string/msg_default_type"
94                     android:textColor="@color/result_minor_text"
95                     android:textStyle="bold"
96                     android:textSize="14sp"
97                     android:paddingRight="4dip"/>
98
99           <TextView android:id="@+id/type_text_view"
100                     android:layout_width="wrap_content"
101                     android:layout_height="wrap_content"
102                     android:textColor="@color/result_minor_text"
103                     android:textSize="14sp"/>
104
105         </LinearLayout>
106
107         <LinearLayout
108           android:orientation="horizontal"
109           android:layout_width="wrap_content"
110           android:layout_height="wrap_content">
111
112           <TextView android:id="@+id/time_text_view_label"
113                     android:layout_width="wrap_content"
114                     android:layout_height="wrap_content"
115                     android:text="@string/msg_default_time"
116                     android:textColor="@color/result_minor_text"
117                     android:textStyle="bold"
118                     android:textSize="14sp"
119                     android:paddingRight="4dip"/>
120
121           <TextView android:id="@+id/time_text_view"
122                     android:layout_width="wrap_content"
123                     android:layout_height="wrap_content"
124                     android:textColor="@color/result_minor_text"
125                     android:textSize="14sp"/>
126
127         </LinearLayout>
128
129       </LinearLayout>
130
131       <ScrollView
132           android:layout_width="fill_parent"
133           android:layout_height="wrap_content">
134
135         <TextView android:id="@+id/contents_text_view"
136                   android:layout_width="wrap_content"
137                   android:layout_height="wrap_content"
138                   android:textColor="@color/result_text"
139                   android:textColorLink="@color/result_text"
140                   android:textSize="22sp"
141                   android:paddingLeft="12dip"
142                   android:autoLink="web"/>
143
144       </ScrollView>
145
146     </LinearLayout>
147
148     <LinearLayout android:id="@+id/result_button_view"
149                   android:orientation="horizontal"
150                   android:layout_width="fill_parent"
151                   android:layout_height="wrap_content"
152                   android:gravity="center">
153
154       <Button android:layout_width="0sp"
155               android:layout_height="wrap_content"
156               android:layout_weight="1"
157               android:textSize="14sp"
158               android:visibility="gone"/>
159
160       <Button android:layout_width="0sp"
161               android:layout_height="wrap_content"
162               android:layout_weight="1"
163               android:textSize="14sp"
164               android:visibility="gone"/>
165
166       <Button android:layout_width="0sp"
167               android:layout_height="wrap_content"
168               android:layout_weight="1"
169               android:textSize="14sp"
170               android:visibility="gone"/>
171
172       <Button android:layout_width="0sp"
173               android:layout_height="wrap_content"
174               android:layout_weight="1"
175               android:textSize="14sp"
176               android:visibility="gone"/>
177
178     </LinearLayout>
179
180   </LinearLayout>
181
182   <TextView android:id="@+id/status_view"
183             android:layout_width="wrap_content"
184             android:layout_height="wrap_content"
185             android:layout_gravity="bottom|center_horizontal"
186             android:text="@string/msg_default_status"
187             android:background="@color/transparent"
188             android:textColor="@color/status_text"
189             android.textSize="14sp"/>
190
191 </FrameLayout>