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 |
<merge xmlns:android="http://schemas.android.com/apk/res/android" |
18 |
xmlns:tools="http://schemas.android.com/tools"> |
19 |
|
20 |
<SurfaceView android:id="@+id/zxing_preview_view" |
21 |
android:layout_width="fill_parent" |
22 |
android:layout_height="fill_parent"/> |
23 |
|
24 |
<com.google.zxing.client.android.ViewfinderView |
25 |
android:id="@+id/zxing_viewfinder_view" |
26 |
android:layout_width="fill_parent" |
27 |
android:layout_height="fill_parent"/> |
28 |
|
29 |
<LinearLayout android:id="@+id/zxing_result_view" |
30 |
android:orientation="vertical" |
31 |
android:layout_width="fill_parent" |
32 |
android:layout_height="fill_parent" |
33 |
android:background="@color/zxing_result_view" |
34 |
android:visibility="gone" |
35 |
android:baselineAligned="false"> |
36 |
|
37 |
<LinearLayout |
38 |
android:orientation="horizontal" |
39 |
android:layout_width="fill_parent" |
40 |
android:layout_height="wrap_content" |
41 |
android:layout_weight="1" |
42 |
android:gravity="top" |
43 |
android:padding="@dimen/zxing_standard_padding"> |
44 |
|
45 |
<LinearLayout |
46 |
android:orientation="vertical" |
47 |
android:layout_width="wrap_content" |
48 |
android:layout_height="fill_parent" |
49 |
android:gravity="right"> |
50 |
|
51 |
<ImageView android:id="@+id/zxing_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/zxing_half_padding" |
57 |
android:adjustViewBounds="true" |
58 |
android:scaleType="centerInside" |
59 |
tools:ignore="ContentDescription"/> |
60 |
|
61 |
<LinearLayout |
62 |
android:orientation="horizontal" |
63 |
android:layout_width="wrap_content" |
64 |
android:layout_height="wrap_content"> |
65 |
|
66 |
<TextView android:layout_width="wrap_content" |
67 |
android:layout_height="wrap_content" |
68 |
android:text="@string/zxing_msg_default_format" |
69 |
android:textColor="@color/zxing_result_minor_text" |
70 |
android:textStyle="bold" |
71 |
android:paddingRight="@dimen/zxing_half_padding"/> |
72 |
|
73 |
<TextView android:id="@+id/zxing_format_text_view" |
74 |
android:layout_width="wrap_content" |
75 |
android:layout_height="wrap_content" |
76 |
android:textColor="@color/zxing_result_minor_text"/> |
77 |
|
78 |
</LinearLayout> |
79 |
|
80 |
<LinearLayout |
81 |
android:orientation="horizontal" |
82 |
android:layout_width="wrap_content" |
83 |
android:layout_height="wrap_content"> |
84 |
|
85 |
<TextView android:layout_width="wrap_content" |
86 |
android:layout_height="wrap_content" |
87 |
android:text="@string/zxing_msg_default_type" |
88 |
android:textColor="@color/zxing_result_minor_text" |
89 |
android:textStyle="bold" |
90 |
android:paddingRight="@dimen/zxing_half_padding"/> |
91 |
|
92 |
<TextView android:id="@+id/zxing_type_text_view" |
93 |
android:layout_width="wrap_content" |
94 |
android:layout_height="wrap_content" |
95 |
android:textColor="@color/zxing_result_minor_text"/> |
96 |
|
97 |
</LinearLayout> |
98 |
|
99 |
<LinearLayout |
100 |
android:orientation="horizontal" |
101 |
android:layout_width="wrap_content" |
102 |
android:layout_height="wrap_content"> |
103 |
|
104 |
<TextView android:layout_width="wrap_content" |
105 |
android:layout_height="wrap_content" |
106 |
android:text="@string/zxing_msg_default_time" |
107 |
android:textColor="@color/zxing_result_minor_text" |
108 |
android:textStyle="bold" |
109 |
android:paddingRight="@dimen/zxing_half_padding"/> |
110 |
|
111 |
<TextView android:id="@+id/zxing_time_text_view" |
112 |
android:layout_width="wrap_content" |
113 |
android:layout_height="wrap_content" |
114 |
android:textColor="@color/zxing_result_minor_text"/> |
115 |
|
116 |
</LinearLayout> |
117 |
|
118 |
<LinearLayout |
119 |
android:orientation="horizontal" |
120 |
android:layout_width="wrap_content" |
121 |
android:layout_height="wrap_content"> |
122 |
|
123 |
<TextView android:id="@+id/zxing_meta_text_view_label" |
124 |
android:layout_width="wrap_content" |
125 |
android:layout_height="wrap_content" |
126 |
android:text="@string/zxing_msg_default_meta" |
127 |
android:textColor="@color/zxing_result_minor_text" |
128 |
android:textStyle="bold" |
129 |
android:paddingRight="@dimen/zxing_half_padding"/> |
130 |
|
131 |
<TextView android:id="@+id/zxing_meta_text_view" |
132 |
android:layout_width="wrap_content" |
133 |
android:layout_height="wrap_content" |
134 |
android:textColor="@color/zxing_result_minor_text"/> |
135 |
|
136 |
</LinearLayout> |
137 |
|
138 |
</LinearLayout> |
139 |
|
140 |
<ScrollView |
141 |
android:layout_width="fill_parent" |
142 |
android:layout_height="wrap_content"> |
143 |
|
144 |
<LinearLayout |
145 |
android:orientation="vertical" |
146 |
android:layout_width="wrap_content" |
147 |
android:layout_height="wrap_content"> |
148 |
|
149 |
<TextView android:id="@+id/zxing_contents_text_view" |
150 |
android:layout_width="wrap_content" |
151 |
android:layout_height="wrap_content" |
152 |
android:textColor="@color/zxing_result_text" |
153 |
android:textColorLink="@color/zxing_result_text" |
154 |
android:textSize="22sp" |
155 |
android:paddingLeft="12dip" |
156 |
android:autoLink="web" |
157 |
android:textIsSelectable="true"/> |
158 |
|
159 |
<TextView android:id="@+id/zxing_contents_supplement_text_view" |
160 |
android:layout_width="wrap_content" |
161 |
android:layout_height="wrap_content" |
162 |
android:textColor="@color/zxing_result_text" |
163 |
android:textColorLink="@color/zxing_result_text" |
164 |
android:paddingLeft="12dip" |
165 |
android:autoLink="web" |
166 |
android:textIsSelectable="true"/> |
167 |
|
168 |
</LinearLayout> |
169 |
|
170 |
</ScrollView> |
171 |
|
172 |
</LinearLayout> |
173 |
|
174 |
<LinearLayout android:id="@+id/zxing_result_button_view" |
175 |
android:orientation="horizontal" |
176 |
android:layout_width="fill_parent" |
177 |
android:layout_height="wrap_content" |
178 |
android:gravity="center"> |
179 |
|
180 |
<Button style="@style/zxing_ResultButton" |
181 |
android:visibility="gone"/> |
182 |
|
183 |
<Button style="@style/zxing_ResultButton" |
184 |
android:visibility="gone"/> |
185 |
|
186 |
<Button style="@style/zxing_ResultButton" |
187 |
android:visibility="gone"/> |
188 |
|
189 |
<Button style="@style/zxing_ResultButton" |
190 |
android:visibility="gone"/> |
191 |
|
192 |
</LinearLayout> |
193 |
|
194 |
</LinearLayout> |
195 |
|
196 |
<TextView android:id="@+id/zxing_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/zxing_transparent" |
201 |
android:text="@string/zxing_msg_default_status" |
202 |
android:textColor="@color/zxing_status_text"/> |
203 |
|
204 |
</merge> |
205 |
<!-- From: file:/home/ralf/src/zxing-android-minimal/zxing-android/res-orig/layout-ldpi/zxing_capture.xml --> |