Small style stuff
[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="centerInside"/>
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           android:orientation="horizontal"
131           android:layout_width="wrap_content"
132           android:layout_height="wrap_content">
133
134           <TextView android:id="@+id/meta_text_view_label"
135                     android:layout_width="wrap_content"
136                     android:layout_height="wrap_content"
137                     android:text="@string/msg_default_meta"
138                     android:textColor="@color/result_minor_text"
139                     android:textStyle="bold"
140                     android:textSize="14sp"
141                     android:paddingRight="4dip"/>
142
143           <TextView android:id="@+id/meta_text_view"
144                     android:layout_width="wrap_content"
145                     android:layout_height="wrap_content"
146                     android:textColor="@color/result_minor_text"
147                     android:textSize="14sp"/>
148
149         </LinearLayout>
150
151       </LinearLayout>
152
153       <ScrollView
154           android:layout_width="fill_parent"
155           android:layout_height="wrap_content">
156
157         <TextView android:id="@+id/contents_text_view"
158                   android:layout_width="wrap_content"
159                   android:layout_height="wrap_content"
160                   android:textColor="@color/result_text"
161                   android:textColorLink="@color/result_text"
162                   android:textSize="22sp"
163                   android:paddingLeft="12dip"
164                   android:autoLink="web"/>
165
166       </ScrollView>
167
168     </LinearLayout>
169
170     <LinearLayout android:id="@+id/result_button_view"
171                   android:orientation="horizontal"
172                   android:layout_width="fill_parent"
173                   android:layout_height="wrap_content"
174                   android:gravity="center">
175
176       <Button android:layout_width="0sp"
177               android:layout_height="wrap_content"
178               android:layout_weight="1"
179               android:textSize="14sp"
180               android:visibility="gone"/>
181
182       <Button android:layout_width="0sp"
183               android:layout_height="wrap_content"
184               android:layout_weight="1"
185               android:textSize="14sp"
186               android:visibility="gone"/>
187
188       <Button android:layout_width="0sp"
189               android:layout_height="wrap_content"
190               android:layout_weight="1"
191               android:textSize="14sp"
192               android:visibility="gone"/>
193
194       <Button android:layout_width="0sp"
195               android:layout_height="wrap_content"
196               android:layout_weight="1"
197               android:textSize="14sp"
198               android:visibility="gone"/>
199
200       <Button android:id="@+id/shopper_button"
201               android:layout_width="wrap_content"
202               android:layout_height="wrap_content"
203               android:textSize="14sp"
204               android:drawableLeft="@drawable/shopper_icon"
205               android:drawablePadding="4dip"
206               android:text="@string/button_google_shopper"
207               android:visibility="gone"/>
208
209     </LinearLayout>
210
211   </LinearLayout>
212
213   <TextView android:id="@+id/status_view"
214             android:layout_width="wrap_content"
215             android:layout_height="wrap_content"
216             android:layout_gravity="bottom|center_horizontal"
217             android:background="@color/transparent"
218             android:text="@string/msg_default_status"
219             android:textColor="@color/status_text"
220             android:textSize="14sp"/>
221
222 </FrameLayout>