1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (C) 2008 ZXing authors
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
9 http://www.apache.org/licenses/LICENSE-2.0
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.
17 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
18 android:layout_width="fill_parent"
19 android:layout_height="fill_parent">
21 <SurfaceView android:id="@+id/preview_view"
22 android:layout_width="fill_parent"
23 android:layout_height="fill_parent"
24 android:layout_centerInParent="true"/>
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"/>
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">
41 android:orientation="horizontal"
42 android:layout_width="fill_parent"
43 android:layout_height="wrap_content"
44 android:layout_weight="1"
46 android:padding="12dip">
49 android:orientation="vertical"
50 android:layout_width="wrap_content"
51 android:layout_height="wrap_content"
52 android:gravity="left|top">
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"/>
63 <TextView android:id="@+id/format_text_view"
64 android:layout_width="wrap_content"
65 android:layout_height="wrap_content"
66 android:layout_gravity="left"
67 android:text="@string/msg_default_format"
68 android:textColor="@color/result_minor_text"
69 android:textSize="12sp"/>
71 <TextView android:id="@+id/type_text_view"
72 android:layout_width="wrap_content"
73 android:layout_height="wrap_content"
74 android:layout_gravity="left"
75 android:text="@string/msg_default_type"
76 android:textColor="@color/result_minor_text"
77 android:textSize="12sp"/>
79 <TextView android:id="@+id/time_text_view"
80 android:layout_width="wrap_content"
81 android:layout_height="wrap_content"
82 android:layout_gravity="left"
83 android:text="@string/msg_default_time"
84 android:textColor="@color/result_minor_text"
85 android:textSize="12sp"/>
90 android:layout_width="fill_parent"
91 android:layout_height="wrap_content"
92 android:layout_weight="1">
94 <TextView android:id="@+id/contents_text_view"
95 android:layout_width="fill_parent"
96 android:layout_height="fill_parent"
97 android:gravity="left|top"
98 android:text="@string/msg_default_contents"
99 android:textColor="@color/result_text"
100 android:textSize="22sp"
101 android:paddingLeft="12dip"
102 android:autoLink="web"/>
108 <LinearLayout android:id="@+id/result_button_view"
109 android:orientation="horizontal"
110 android:layout_width="fill_parent"
111 android:layout_height="wrap_content"
112 android:gravity="center">
114 <Button android:layout_width="wrap_content"
115 android:layout_height="wrap_content"
116 android:visibility="gone"/>
118 <Button android:layout_width="wrap_content"
119 android:layout_height="wrap_content"
120 android:visibility="gone"/>
122 <Button android:layout_width="wrap_content"
123 android:layout_height="wrap_content"
124 android:visibility="gone"/>
126 <Button android:layout_width="wrap_content"
127 android:layout_height="wrap_content"
128 android:visibility="gone"/>
135 android:orientation="vertical"
136 android:layout_width="fill_parent"
137 android:layout_height="fill_parent"
138 android:background="@color/transparent">
141 android:layout_width="fill_parent"
142 android:layout_height="fill_parent"
143 android:layout_weight="1"
144 android:background="@color/transparent"/>
146 <LinearLayout android:id="@+id/status_view"
147 android:orientation="horizontal"
148 android:layout_width="fill_parent"
149 android:layout_height="wrap_content"
150 android:layout_weight="0"
151 android:background="@color/status_view"
152 android:baselineAligned="false"
153 android:padding="4dip">
155 <TextView android:id="@+id/status_text_view"
156 android:layout_width="wrap_content"
157 android:layout_height="wrap_content"
158 android:layout_gravity="left|center_vertical"
159 android:layout_weight="1"
160 android:text="@string/msg_default_status"
161 android:textColor="@color/status_text"
162 android.textSize="14sp"/>