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="wrap_content"
56 android:layout_height="wrap_content"
57 android:layout_marginBottom="4dip"
58 android:adjustViewBounds="true"
59 android:scaleType="centerInside"/>
61 <TextView android:id="@+id/format_text_view"
62 android:layout_width="wrap_content"
63 android:layout_height="wrap_content"
64 android:layout_gravity="left"
65 android:text="@string/msg_default_format"
66 android:textColor="@color/result_minor_text"
67 android:textSize="12sp"/>
69 <TextView android:id="@+id/type_text_view"
70 android:layout_width="wrap_content"
71 android:layout_height="wrap_content"
72 android:layout_gravity="left"
73 android:text="@string/msg_default_type"
74 android:textColor="@color/result_minor_text"
75 android:textSize="12sp"/>
77 <TextView android:id="@+id/time_text_view"
78 android:layout_width="wrap_content"
79 android:layout_height="wrap_content"
80 android:layout_gravity="left"
81 android:text="@string/msg_default_time"
82 android:textColor="@color/result_minor_text"
83 android:textSize="12sp"/>
88 android:layout_width="fill_parent"
89 android:layout_height="wrap_content"
90 android:layout_weight="1">
92 <TextView android:id="@+id/contents_text_view"
93 android:layout_width="fill_parent"
94 android:layout_height="fill_parent"
95 android:gravity="left|top"
96 android:text="@string/msg_default_contents"
97 android:textColor="@color/result_text"
98 android:textSize="22sp"
99 android:paddingLeft="12dip"
100 android:autoLink="web"/>
106 <LinearLayout android:id="@+id/result_button_view"
107 android:orientation="horizontal"
108 android:layout_width="fill_parent"
109 android:layout_height="wrap_content"
110 android:gravity="center">
112 <Button android:layout_width="wrap_content"
113 android:layout_height="wrap_content"
114 android:visibility="gone"/>
116 <Button android:layout_width="wrap_content"
117 android:layout_height="wrap_content"
118 android:visibility="gone"/>
120 <Button android:layout_width="wrap_content"
121 android:layout_height="wrap_content"
122 android:visibility="gone"/>
124 <Button android:layout_width="wrap_content"
125 android:layout_height="wrap_content"
126 android:visibility="gone"/>
133 android:orientation="vertical"
134 android:layout_width="fill_parent"
135 android:layout_height="fill_parent"
136 android:background="@color/transparent">
139 android:layout_width="fill_parent"
140 android:layout_height="fill_parent"
141 android:layout_weight="1"
142 android:background="@color/transparent"/>
144 <LinearLayout android:id="@+id/status_view"
145 android:orientation="horizontal"
146 android:layout_width="fill_parent"
147 android:layout_height="wrap_content"
148 android:layout_weight="0"
149 android:background="@color/status_view"
150 android:baselineAligned="false"
151 android:padding="4dip">
153 <TextView android:id="@+id/status_text_view"
154 android:layout_width="wrap_content"
155 android:layout_height="wrap_content"
156 android:layout_gravity="left|center_vertical"
157 android:layout_weight="1"
158 android:text="@string/msg_default_status"
159 android:textColor="@color/status_text"
160 android.textSize="14sp"/>