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/zxinglegacy_preview_view" |
22 |
android:layout_width="fill_parent" |
23 |
android:layout_height="fill_parent"/> |
24 |
|
25 |
<com.google.zxing.client.androidlegacy.ViewfinderView |
26 |
android:id="@+id/zxinglegacy_viewfinder_view" |
27 |
android:layout_width="fill_parent" |
28 |
android:layout_height="fill_parent"/> |
29 |
|
30 |
<LinearLayout android:id="@+id/zxinglegacy_result_view" |
31 |
android:orientation="vertical" |
32 |
android:layout_width="fill_parent" |
33 |
android:layout_height="fill_parent" |
34 |
android:background="@color/zxinglegacy_result_view" |
35 |
android:visibility="gone" |
36 |
android:baselineAligned="false"> |
37 |
|
38 |
<LinearLayout |
39 |
android:orientation="horizontal" |
40 |
android:layout_width="fill_parent" |
41 |
android:layout_height="wrap_content" |
42 |
android:layout_weight="1" |
43 |
android:gravity="center" |
44 |
android:padding="@dimen/zxinglegacy_standard_padding"> |
45 |
|
46 |
<LinearLayout |
47 |
android:orientation="vertical" |
48 |
android:layout_width="wrap_content" |
49 |
android:layout_height="fill_parent" |
50 |
android:gravity="right|center_vertical"> |
51 |
|
52 |
<ImageView android:id="@+id/zxinglegacy_barcode_image_view" |
53 |
android:layout_width="160dip" |
54 |
android:layout_height="wrap_content" |
55 |
android:maxWidth="160dip" |
56 |
android:maxHeight="160dip" |
57 |
android:layout_marginBottom="@dimen/zxinglegacy_half_padding" |
58 |
android:adjustViewBounds="true" |
59 |
android:scaleType="centerInside"/> |
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/zxinglegacy_msg_default_format" |
69 |
android:textColor="@color/zxinglegacy_result_minor_text" |
70 |
android:textStyle="bold" |
71 |
android:paddingRight="@dimen/zxinglegacy_half_padding"/> |
72 |
|
73 |
<TextView android:id="@+id/format_text_view" |
74 |
android:layout_width="wrap_content" |
75 |
android:layout_height="wrap_content" |
76 |
android:textColor="@color/zxinglegacy_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/zxinglegacy_msg_default_type" |
88 |
android:textColor="@color/zxinglegacy_result_minor_text" |
89 |
android:textStyle="bold" |
90 |
android:paddingRight="@dimen/zxinglegacy_half_padding"/> |
91 |
|
92 |
<TextView android:id="@+id/zxinglegacy_type_text_view" |
93 |
android:layout_width="wrap_content" |
94 |
android:layout_height="wrap_content" |
95 |
android:textColor="@color/zxinglegacy_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/zxinglegacy_msg_default_time" |
107 |
android:textColor="@color/zxinglegacy_result_minor_text" |
108 |
android:textStyle="bold" |
109 |
android:paddingRight="@dimen/zxinglegacy_half_padding"/> |
110 |
|
111 |
<TextView android:id="@+id/zxinglegacy_time_text_view" |
112 |
android:layout_width="wrap_content" |
113 |
android:layout_height="wrap_content" |
114 |
android:textColor="@color/zxinglegacy_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/meta_text_view_label" |
124 |
android:layout_width="wrap_content" |
125 |
android:layout_height="wrap_content" |
126 |
android:text="@string/zxinglegacy_msg_default_meta" |
127 |
android:textColor="@color/zxinglegacy_result_minor_text" |
128 |
android:textStyle="bold" |
129 |
android:paddingRight="@dimen/zxinglegacy_half_padding"/> |
130 |
|
131 |
<TextView android:id="@+id/zxinglegacy_meta_text_view" |
132 |
android:layout_width="wrap_content" |
133 |
android:layout_height="wrap_content" |
134 |
android:textColor="@color/zxinglegacy_result_minor_text"/> |
135 |
|
136 |
</LinearLayout> |
137 |
|
138 |
</LinearLayout> |
139 |
|
140 |
<ScrollView |
141 |
android:layout_width="wrap_content" |
142 |
android:layout_height="wrap_content"> |
143 |
|
144 |
<LinearLayout |
145 |
android:layout_width="wrap_content" |
146 |
android:layout_height="wrap_content" |
147 |
android:orientation="vertical"> |
148 |
|
149 |
<TextView android:id="@+id/zxinglegacy_contents_text_view" |
150 |
android:layout_width="wrap_content" |
151 |
android:layout_height="wrap_content" |
152 |
android:textColor="@color/zxinglegacy_result_text" |
153 |
android:textColorLink="@color/zxinglegacy_result_text" |
154 |
android:textSize="22sp" |
155 |
android:paddingLeft="12dip" |
156 |
android:autoLink="web"/> |
157 |
|
158 |
<TextView android:id="@+id/zxinglegacy_contents_supplement_text_view" |
159 |
android:layout_width="wrap_content" |
160 |
android:layout_height="wrap_content" |
161 |
android:textColor="@color/zxinglegacy_result_text" |
162 |
android:textColorLink="@color/zxinglegacy_result_text" |
163 |
android:paddingLeft="12dip" |
164 |
android:autoLink="web"/> |
165 |
|
166 |
</LinearLayout> |
167 |
|
168 |
</ScrollView> |
169 |
|
170 |
</LinearLayout> |
171 |
|
172 |
<LinearLayout android:id="@+id/zxinglegacy_result_button_view" |
173 |
android:layout_width="fill_parent" |
174 |
android:layout_height="wrap_content" |
175 |
android:orientation="horizontal" |
176 |
android:gravity="center"> |
177 |
|
178 |
<Button android:layout_width="0dip" |
179 |
android:layout_height="wrap_content" |
180 |
android:layout_weight="1" |
181 |
android:visibility="gone"/> |
182 |
|
183 |
<Button android:layout_width="0dip" |
184 |
android:layout_height="wrap_content" |
185 |
android:layout_weight="1" |
186 |
android:visibility="gone"/> |
187 |
|
188 |
<Button android:layout_width="0dip" |
189 |
android:layout_height="wrap_content" |
190 |
android:layout_weight="1" |
191 |
android:visibility="gone"/> |
192 |
|
193 |
<Button android:layout_width="0dip" |
194 |
android:layout_height="wrap_content" |
195 |
android:layout_weight="1" |
196 |
android:visibility="gone"/> |
197 |
|
198 |
</LinearLayout> |
199 |
|
200 |
</LinearLayout> |
201 |
|
202 |
<TextView android:id="@+id/zxinglegacy_status_view" |
203 |
android:layout_width="wrap_content" |
204 |
android:layout_height="wrap_content" |
205 |
android:layout_gravity="bottom|center_horizontal" |
206 |
android:background="@color/zxinglegacy_transparent" |
207 |
android:text="@string/zxinglegacy_msg_default_status" |
208 |
android:textColor="@color/zxinglegacy_status_text"/> |
209 |
|
210 |
</FrameLayout> |
211 |
<!-- From: file:/home/ralf/src/zxing-android-minimal/zxing-android-legacy/res/layout/zxinglegacy_capture.xml --><!-- From: file:/C:/Users/thn/AndroidStudioProjects/BarcodeSample/app/build/intermediates/exploded-aar/com.journeyapps/zxing-android-legacy/2.0.1/res/layout/zxinglegacy_capture.xml --> |