xref: /aosp_15_r20/external/zxing/android/res/layout-ldpi/capture.xml (revision 513427e33d61bc67fc40bc261642ac0b2a686b45)
1*513427e3STreehugger Robot<?xml version="1.0" encoding="UTF-8"?>
2*513427e3STreehugger Robot<!--
3*513427e3STreehugger Robot Copyright (C) 2008 ZXing authors
4*513427e3STreehugger Robot
5*513427e3STreehugger Robot Licensed under the Apache License, Version 2.0 (the "License");
6*513427e3STreehugger Robot you may not use this file except in compliance with the License.
7*513427e3STreehugger Robot You may obtain a copy of the License at
8*513427e3STreehugger Robot
9*513427e3STreehugger Robot      http://www.apache.org/licenses/LICENSE-2.0
10*513427e3STreehugger Robot
11*513427e3STreehugger Robot Unless required by applicable law or agreed to in writing, software
12*513427e3STreehugger Robot distributed under the License is distributed on an "AS IS" BASIS,
13*513427e3STreehugger Robot WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*513427e3STreehugger Robot See the License for the specific language governing permissions and
15*513427e3STreehugger Robot limitations under the License.
16*513427e3STreehugger Robot -->
17*513427e3STreehugger Robot<merge xmlns:android="http://schemas.android.com/apk/res/android"
18*513427e3STreehugger Robot       xmlns:tools="http://schemas.android.com/tools">
19*513427e3STreehugger Robot
20*513427e3STreehugger Robot  <SurfaceView android:id="@+id/preview_view"
21*513427e3STreehugger Robot               android:layout_width="fill_parent"
22*513427e3STreehugger Robot               android:layout_height="fill_parent"/>
23*513427e3STreehugger Robot
24*513427e3STreehugger Robot  <com.google.zxing.client.android.ViewfinderView
25*513427e3STreehugger Robot      android:id="@+id/viewfinder_view"
26*513427e3STreehugger Robot      android:layout_width="fill_parent"
27*513427e3STreehugger Robot      android:layout_height="fill_parent"/>
28*513427e3STreehugger Robot
29*513427e3STreehugger Robot  <LinearLayout android:id="@+id/result_view"
30*513427e3STreehugger Robot                android:orientation="vertical"
31*513427e3STreehugger Robot                android:layout_width="fill_parent"
32*513427e3STreehugger Robot                android:layout_height="fill_parent"
33*513427e3STreehugger Robot                android:background="@color/result_view"
34*513427e3STreehugger Robot                android:visibility="gone"
35*513427e3STreehugger Robot                android:baselineAligned="false">
36*513427e3STreehugger Robot
37*513427e3STreehugger Robot    <LinearLayout
38*513427e3STreehugger Robot        android:orientation="horizontal"
39*513427e3STreehugger Robot        android:layout_width="fill_parent"
40*513427e3STreehugger Robot        android:layout_height="wrap_content"
41*513427e3STreehugger Robot        android:layout_weight="1"
42*513427e3STreehugger Robot        android:gravity="top"
43*513427e3STreehugger Robot        android:padding="@dimen/standard_padding">
44*513427e3STreehugger Robot
45*513427e3STreehugger Robot      <LinearLayout
46*513427e3STreehugger Robot          android:orientation="vertical"
47*513427e3STreehugger Robot          android:layout_width="wrap_content"
48*513427e3STreehugger Robot          android:layout_height="fill_parent"
49*513427e3STreehugger Robot          android:gravity="right">
50*513427e3STreehugger Robot
51*513427e3STreehugger Robot        <ImageView android:id="@+id/barcode_image_view"
52*513427e3STreehugger Robot                   android:layout_width="150dip"
53*513427e3STreehugger Robot                   android:layout_height="wrap_content"
54*513427e3STreehugger Robot                   android:maxWidth="150dip"
55*513427e3STreehugger Robot                   android:maxHeight="150dip"
56*513427e3STreehugger Robot                   android:layout_marginBottom="@dimen/half_padding"
57*513427e3STreehugger Robot                   android:adjustViewBounds="true"
58*513427e3STreehugger Robot                   android:scaleType="centerInside"
59*513427e3STreehugger Robot                   tools:ignore="ContentDescription"/>
60*513427e3STreehugger Robot
61*513427e3STreehugger Robot        <LinearLayout
62*513427e3STreehugger Robot          android:orientation="horizontal"
63*513427e3STreehugger Robot          android:layout_width="wrap_content"
64*513427e3STreehugger Robot          android:layout_height="wrap_content">
65*513427e3STreehugger Robot
66*513427e3STreehugger Robot          <TextView android:layout_width="wrap_content"
67*513427e3STreehugger Robot                    android:layout_height="wrap_content"
68*513427e3STreehugger Robot                    android:text="@string/msg_default_format"
69*513427e3STreehugger Robot                    android:textColor="@color/result_minor_text"
70*513427e3STreehugger Robot                    android:textStyle="bold"
71*513427e3STreehugger Robot                    android:paddingRight="@dimen/half_padding"/>
72*513427e3STreehugger Robot
73*513427e3STreehugger Robot          <TextView android:id="@+id/format_text_view"
74*513427e3STreehugger Robot                    android:layout_width="wrap_content"
75*513427e3STreehugger Robot                    android:layout_height="wrap_content"
76*513427e3STreehugger Robot                    android:textColor="@color/result_minor_text"/>
77*513427e3STreehugger Robot
78*513427e3STreehugger Robot        </LinearLayout>
79*513427e3STreehugger Robot
80*513427e3STreehugger Robot        <LinearLayout
81*513427e3STreehugger Robot          android:orientation="horizontal"
82*513427e3STreehugger Robot          android:layout_width="wrap_content"
83*513427e3STreehugger Robot          android:layout_height="wrap_content">
84*513427e3STreehugger Robot
85*513427e3STreehugger Robot          <TextView android:layout_width="wrap_content"
86*513427e3STreehugger Robot                    android:layout_height="wrap_content"
87*513427e3STreehugger Robot                    android:text="@string/msg_default_type"
88*513427e3STreehugger Robot                    android:textColor="@color/result_minor_text"
89*513427e3STreehugger Robot                    android:textStyle="bold"
90*513427e3STreehugger Robot                    android:paddingRight="@dimen/half_padding"/>
91*513427e3STreehugger Robot
92*513427e3STreehugger Robot          <TextView android:id="@+id/type_text_view"
93*513427e3STreehugger Robot                    android:layout_width="wrap_content"
94*513427e3STreehugger Robot                    android:layout_height="wrap_content"
95*513427e3STreehugger Robot                    android:textColor="@color/result_minor_text"/>
96*513427e3STreehugger Robot
97*513427e3STreehugger Robot        </LinearLayout>
98*513427e3STreehugger Robot
99*513427e3STreehugger Robot        <LinearLayout
100*513427e3STreehugger Robot          android:orientation="horizontal"
101*513427e3STreehugger Robot          android:layout_width="wrap_content"
102*513427e3STreehugger Robot          android:layout_height="wrap_content">
103*513427e3STreehugger Robot
104*513427e3STreehugger Robot          <TextView android:layout_width="wrap_content"
105*513427e3STreehugger Robot                    android:layout_height="wrap_content"
106*513427e3STreehugger Robot                    android:text="@string/msg_default_time"
107*513427e3STreehugger Robot                    android:textColor="@color/result_minor_text"
108*513427e3STreehugger Robot                    android:textStyle="bold"
109*513427e3STreehugger Robot                    android:paddingRight="@dimen/half_padding"/>
110*513427e3STreehugger Robot
111*513427e3STreehugger Robot          <TextView android:id="@+id/time_text_view"
112*513427e3STreehugger Robot                    android:layout_width="wrap_content"
113*513427e3STreehugger Robot                    android:layout_height="wrap_content"
114*513427e3STreehugger Robot                    android:textColor="@color/result_minor_text"/>
115*513427e3STreehugger Robot
116*513427e3STreehugger Robot        </LinearLayout>
117*513427e3STreehugger Robot
118*513427e3STreehugger Robot        <LinearLayout
119*513427e3STreehugger Robot          android:orientation="horizontal"
120*513427e3STreehugger Robot          android:layout_width="wrap_content"
121*513427e3STreehugger Robot          android:layout_height="wrap_content">
122*513427e3STreehugger Robot
123*513427e3STreehugger Robot          <TextView android:id="@+id/meta_text_view_label"
124*513427e3STreehugger Robot                    android:layout_width="wrap_content"
125*513427e3STreehugger Robot                    android:layout_height="wrap_content"
126*513427e3STreehugger Robot                    android:text="@string/msg_default_meta"
127*513427e3STreehugger Robot                    android:textColor="@color/result_minor_text"
128*513427e3STreehugger Robot                    android:textStyle="bold"
129*513427e3STreehugger Robot                    android:paddingRight="@dimen/half_padding"/>
130*513427e3STreehugger Robot
131*513427e3STreehugger Robot          <TextView android:id="@+id/meta_text_view"
132*513427e3STreehugger Robot                    android:layout_width="wrap_content"
133*513427e3STreehugger Robot                    android:layout_height="wrap_content"
134*513427e3STreehugger Robot                    android:textColor="@color/result_minor_text"/>
135*513427e3STreehugger Robot
136*513427e3STreehugger Robot        </LinearLayout>
137*513427e3STreehugger Robot
138*513427e3STreehugger Robot      </LinearLayout>
139*513427e3STreehugger Robot
140*513427e3STreehugger Robot      <ScrollView
141*513427e3STreehugger Robot          android:layout_width="fill_parent"
142*513427e3STreehugger Robot          android:layout_height="wrap_content">
143*513427e3STreehugger Robot
144*513427e3STreehugger Robot        <LinearLayout
145*513427e3STreehugger Robot          android:orientation="vertical"
146*513427e3STreehugger Robot          android:layout_width="wrap_content"
147*513427e3STreehugger Robot          android:layout_height="wrap_content">
148*513427e3STreehugger Robot
149*513427e3STreehugger Robot          <TextView android:id="@+id/contents_text_view"
150*513427e3STreehugger Robot                    android:layout_width="wrap_content"
151*513427e3STreehugger Robot                    android:layout_height="wrap_content"
152*513427e3STreehugger Robot                    android:textColor="@color/result_text"
153*513427e3STreehugger Robot                    android:textColorLink="@color/result_text"
154*513427e3STreehugger Robot                    android:textSize="22sp"
155*513427e3STreehugger Robot                    android:paddingLeft="12dip"
156*513427e3STreehugger Robot                    android:autoLink="web"
157*513427e3STreehugger Robot                    android:textIsSelectable="true"/>
158*513427e3STreehugger Robot
159*513427e3STreehugger Robot          <TextView android:id="@+id/contents_supplement_text_view"
160*513427e3STreehugger Robot                    android:layout_width="wrap_content"
161*513427e3STreehugger Robot                    android:layout_height="wrap_content"
162*513427e3STreehugger Robot                    android:textColor="@color/result_text"
163*513427e3STreehugger Robot                    android:textColorLink="@color/result_text"
164*513427e3STreehugger Robot                    android:paddingLeft="12dip"
165*513427e3STreehugger Robot                    android:autoLink="web"
166*513427e3STreehugger Robot                    android:textIsSelectable="true"/>
167*513427e3STreehugger Robot
168*513427e3STreehugger Robot        </LinearLayout>
169*513427e3STreehugger Robot
170*513427e3STreehugger Robot      </ScrollView>
171*513427e3STreehugger Robot
172*513427e3STreehugger Robot    </LinearLayout>
173*513427e3STreehugger Robot
174*513427e3STreehugger Robot    <LinearLayout android:id="@+id/result_button_view"
175*513427e3STreehugger Robot                  android:orientation="horizontal"
176*513427e3STreehugger Robot                  android:layout_width="fill_parent"
177*513427e3STreehugger Robot                  android:layout_height="wrap_content"
178*513427e3STreehugger Robot                  android:gravity="center">
179*513427e3STreehugger Robot
180*513427e3STreehugger Robot      <Button style="@style/ResultButton"
181*513427e3STreehugger Robot              android:visibility="gone"/>
182*513427e3STreehugger Robot
183*513427e3STreehugger Robot      <Button style="@style/ResultButton"
184*513427e3STreehugger Robot              android:visibility="gone"/>
185*513427e3STreehugger Robot
186*513427e3STreehugger Robot      <Button style="@style/ResultButton"
187*513427e3STreehugger Robot              android:visibility="gone"/>
188*513427e3STreehugger Robot
189*513427e3STreehugger Robot      <Button style="@style/ResultButton"
190*513427e3STreehugger Robot              android:visibility="gone"/>
191*513427e3STreehugger Robot
192*513427e3STreehugger Robot    </LinearLayout>
193*513427e3STreehugger Robot
194*513427e3STreehugger Robot  </LinearLayout>
195*513427e3STreehugger Robot
196*513427e3STreehugger Robot  <TextView android:id="@+id/status_view"
197*513427e3STreehugger Robot            android:layout_width="wrap_content"
198*513427e3STreehugger Robot            android:layout_height="wrap_content"
199*513427e3STreehugger Robot            android:layout_gravity="bottom|center_horizontal"
200*513427e3STreehugger Robot            android:background="@color/transparent"
201*513427e3STreehugger Robot            android:text="@string/msg_default_status"
202*513427e3STreehugger Robot            android:textColor="@color/status_text"/>
203*513427e3STreehugger Robot
204*513427e3STreehugger Robot</merge>
205