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 <merge xmlns:android="http://schemas.android.com/apk/res/android"
18 xmlns:tools="http://schemas.android.com/tools">
20 <SurfaceView android:id="@+id/preview_view"
21 android:layout_width="fill_parent"
22 android:layout_height="fill_parent"/>
24 <cz.cvut.fel.dce.barcodescanner.ViewfinderView
25 android:id="@+id/viewfinder_view"
26 android:layout_width="fill_parent"
27 android:layout_height="fill_parent"/>
29 <LinearLayout android:id="@+id/result_view"
30 android:orientation="vertical"
31 android:layout_width="fill_parent"
32 android:layout_height="fill_parent"
33 android:background="@color/result_view"
34 android:visibility="gone"
35 android:baselineAligned="false">
38 android:orientation="horizontal"
39 android:layout_width="fill_parent"
40 android:layout_height="wrap_content"
41 android:layout_weight="1"
43 android:padding="@dimen/standard_padding">
46 android:orientation="vertical"
47 android:layout_width="wrap_content"
48 android:layout_height="fill_parent"
49 android:gravity="right">
51 <ImageView android:id="@+id/barcode_image_view"
52 android:layout_width="150dip"
53 android:layout_height="wrap_content"
54 android:maxWidth="150dip"
55 android:maxHeight="150dip"
56 android:layout_marginBottom="@dimen/half_padding"
57 android:adjustViewBounds="true"
58 android:scaleType="centerInside"
59 tools:ignore="ContentDescription"/>
62 android:orientation="horizontal"
63 android:layout_width="wrap_content"
64 android:layout_height="wrap_content">
66 <TextView android:layout_width="wrap_content"
67 android:layout_height="wrap_content"
68 android:text="@string/msg_default_format"
69 android:textColor="@color/result_minor_text"
70 android:textStyle="bold"
71 android:paddingRight="@dimen/half_padding"/>
73 <TextView android:id="@+id/format_text_view"
74 android:layout_width="wrap_content"
75 android:layout_height="wrap_content"
76 android:textColor="@color/result_minor_text"/>
81 android:orientation="horizontal"
82 android:layout_width="wrap_content"
83 android:layout_height="wrap_content">
85 <TextView android:layout_width="wrap_content"
86 android:layout_height="wrap_content"
87 android:text="@string/msg_default_type"
88 android:textColor="@color/result_minor_text"
89 android:textStyle="bold"
90 android:paddingRight="@dimen/half_padding"/>
92 <TextView android:id="@+id/type_text_view"
93 android:layout_width="wrap_content"
94 android:layout_height="wrap_content"
95 android:textColor="@color/result_minor_text"/>
100 android:orientation="horizontal"
101 android:layout_width="wrap_content"
102 android:layout_height="wrap_content">
104 <TextView android:layout_width="wrap_content"
105 android:layout_height="wrap_content"
106 android:text="@string/msg_default_time"
107 android:textColor="@color/result_minor_text"
108 android:textStyle="bold"
109 android:paddingRight="@dimen/half_padding"/>
111 <TextView android:id="@+id/time_text_view"
112 android:layout_width="wrap_content"
113 android:layout_height="wrap_content"
114 android:textColor="@color/result_minor_text"/>
119 android:orientation="horizontal"
120 android:layout_width="wrap_content"
121 android:layout_height="wrap_content">
123 <TextView android:id="@+id/meta_text_view_label"
124 android:layout_width="wrap_content"
125 android:layout_height="wrap_content"
126 android:text="@string/msg_default_meta"
127 android:textColor="@color/result_minor_text"
128 android:textStyle="bold"
129 android:paddingRight="@dimen/half_padding"/>
131 <TextView android:id="@+id/meta_text_view"
132 android:layout_width="wrap_content"
133 android:layout_height="wrap_content"
134 android:textColor="@color/result_minor_text"/>
141 android:layout_width="fill_parent"
142 android:layout_height="wrap_content">
145 android:orientation="vertical"
146 android:layout_width="wrap_content"
147 android:layout_height="wrap_content">
149 <TextView android:id="@+id/contents_text_view"
150 android:layout_width="wrap_content"
151 android:layout_height="wrap_content"
152 android:textColor="@color/result_text"
153 android:textColorLink="@color/result_text"
154 android:textSize="22sp"
155 android:paddingLeft="12dip"
156 android:autoLink="web"
157 android:textIsSelectable="true"/>
159 <TextView android:id="@+id/contents_supplement_text_view"
160 android:layout_width="wrap_content"
161 android:layout_height="wrap_content"
162 android:textColor="@color/result_text"
163 android:textColorLink="@color/result_text"
164 android:paddingLeft="12dip"
165 android:autoLink="web"
166 android:textIsSelectable="true"/>
174 <LinearLayout android:id="@+id/result_button_view"
175 android:orientation="horizontal"
176 android:layout_width="fill_parent"
177 android:layout_height="wrap_content"
178 android:gravity="center">
180 <Button style="@style/ResultButton"
181 android:visibility="gone"/>
183 <Button style="@style/ResultButton"
184 android:visibility="gone"/>
186 <Button style="@style/ResultButton"
187 android:visibility="gone"/>
189 <Button style="@style/ResultButton"
190 android:visibility="gone"/>
196 <TextView android:id="@+id/status_view"
197 android:layout_width="wrap_content"
198 android:layout_height="wrap_content"
199 android:layout_gravity="bottom|center_horizontal"
200 android:background="@color/transparent"
201 android:text="@string/msg_default_status"
202 android:textColor="@color/status_text"/>