]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/src/main/res/layout-land/activity_preview.xml
Implement viewing of the item compartment number
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / src / main / res / layout-land / activity_preview.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3               android:orientation="horizontal"
4               android:layout_width="match_parent"
5               android:layout_height="match_parent"
6               android:weightSum="1">
7
8     <LinearLayout
9         android:orientation="vertical"
10         android:layout_width="wrap_content"
11         android:layout_height="match_parent"
12         android:weightSum="1"
13         android:layout_alignParentLeft="true"
14         android:layout_marginLeft="0dp"
15         android:layout_alignParentTop="true"
16         android:layout_marginTop="0dp"
17         android:id="@+id/linearLayout">
18
19         <TextView
20             android:layout_width="wrap_content"
21             android:layout_height="wrap_content"
22             android:textAppearance="?android:attr/textAppearanceMedium"
23             android:text="@string/previewHeading"
24             android:id="@+id/textView2"/>
25
26         <RelativeLayout
27             android:layout_width="match_parent"
28             android:layout_height="match_parent"
29             android:layout_gravity="center_horizontal">
30
31             <TextView
32                 android:layout_width="wrap_content"
33                 android:layout_height="wrap_content"
34                 android:textAppearance="?android:attr/textAppearanceSmall"
35                 android:id="@+id/textView3"
36                 android:layout_centerVertical="true"
37                 android:layout_centerHorizontal="true"/>
38
39             <RelativeLayout
40                 android:layout_width="fill_parent"
41                 android:layout_height="fill_parent"
42                 android:layout_above="@+id/textView3"
43                 android:layout_centerHorizontal="true">
44
45                 <TextView
46                     android:layout_width="wrap_content"
47                     android:layout_height="wrap_content"
48                     android:textAppearance="?android:attr/textAppearanceSmall"
49                     android:id="@+id/textView4"
50                     android:layout_centerVertical="true"
51                     android:layout_centerHorizontal="true"/>
52
53                 <Button
54                     android:layout_width="match_parent"
55                     android:layout_height="wrap_content"
56                     android:text="@string/butPicturedmanufacturing"
57                     android:id="@+id/butManufactImages"
58                     android:onClick="showManufactImages"
59                     android:layout_gravity="center_horizontal"
60                     android:layout_above="@+id/textView4"
61                     android:layout_alignParentLeft="true"
62                     android:layout_alignParentStart="true"
63                     android:layout_alignParentBottom="true"
64                     android:layout_below="@+id/textView4"/>
65
66                 <Button
67                     android:layout_width="match_parent"
68                     android:layout_height="wrap_content"
69                     android:text="@string/butManufacturing"
70                     android:id="@+id/butManufacturing"
71                     android:onClick="showManufacturing"
72                     android:layout_below="@+id/textView4"
73                     android:layout_gravity="center_horizontal"
74                     android:layout_alignParentLeft="true"
75                     android:layout_alignParentStart="true"
76                     android:layout_alignParentTop="true"
77                     android:layout_above="@+id/textView4"/>
78
79             </RelativeLayout>
80
81             <RelativeLayout
82                 android:layout_width="fill_parent"
83                 android:layout_height="fill_parent"
84                 android:layout_below="@+id/textView3"
85                 android:layout_centerHorizontal="true">
86
87                 <TextView
88                     android:layout_width="wrap_content"
89                     android:layout_height="wrap_content"
90                     android:textAppearance="?android:attr/textAppearanceSmall"
91                     android:id="@+id/textView5"
92                     android:layout_centerVertical="true"
93                     android:layout_centerHorizontal="true"/>
94
95                 <Button
96                     android:layout_width="match_parent"
97                     android:layout_height="wrap_content"
98                     android:text="@string/butManufacturingGuide"
99                     android:id="@+id/butManufactGuide"
100                     android:onClick="showManufactGuide"
101                     android:layout_gravity="center_horizontal"
102                     android:layout_above="@+id/textView5"
103                     android:layout_alignParentLeft="true"
104                     android:layout_alignParentStart="true"
105                     android:layout_alignParentTop="true"/>
106
107                 <Button
108                     android:layout_width="match_parent"
109                     android:layout_height="wrap_content"
110                     android:text="@string/butContacts"
111                     android:id="@+id/butContacts"
112                     android:onClick="showContacts"
113                     android:layout_below="@+id/textView5"
114                     android:layout_alignParentLeft="true"
115                     android:layout_alignParentStart="true"
116                     android:layout_alignParentBottom="true"/>
117
118             </RelativeLayout>
119         </RelativeLayout>
120
121     </LinearLayout>
122
123     <RelativeLayout
124         android:layout_width="wrap_content"
125         android:layout_height="fill_parent"
126         android:layout_marginLeft="27dp"
127         android:layout_marginStart="27dp"
128         android:layout_alignParentTop="true"
129         android:layout_toRightOf="@+id/linearLayout"
130         android:layout_toEndOf="@+id/linearLayout"
131         android:id="@+id/relativeLayout">
132
133         <TextView
134             android:layout_width="wrap_content"
135             android:layout_height="wrap_content"
136             android:textAppearance="?android:attr/textAppearanceMedium"
137             android:text="@string/compartment_label"
138             android:id="@+id/textView13"
139             android:layout_alignParentTop="true"
140             android:layout_alignParentLeft="true"
141             android:layout_alignParentStart="true"/>
142
143         <TextView
144             android:layout_width="wrap_content"
145             android:layout_height="wrap_content"
146             android:textAppearance="?android:attr/textAppearanceLarge"
147             android:text="1"
148             android:id="@+id/compartment_value"
149             android:textSize="200dp"
150             android:layout_centerVertical="true"
151             android:layout_centerHorizontal="true"/>
152
153     </RelativeLayout>
154
155     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
156                     android:orientation="horizontal"
157                     android:layout_width="match_parent"
158                     android:layout_height="match_parent"
159                     android:layout_alignParentTop="true"
160                     android:layout_marginTop="0dp"
161                     android:layout_toRightOf="@+id/relativeLayout"
162                     android:layout_toEndOf="@+id/relativeLayout">
163
164         <ImageView
165             android:layout_width="match_parent"
166             android:layout_height="match_parent"
167             android:id="@+id/imgComponent"
168             android:layout_gravity="center_horizontal"
169             android:scaleType="center"
170             android:contentDescription="@string/preview_content_desc"
171             android:layout_alignParentTop="true"
172             android:layout_alignParentLeft="true"
173             android:layout_alignParentStart="true"/>
174
175         <RelativeLayout
176             android:layout_width="73dp"
177             android:layout_height="match_parent"
178             android:id="@+id/progress_container"
179             android:layout_alignParentTop="true"
180             android:layout_alignParentRight="true"
181             android:layout_alignParentEnd="true"
182             android:layout_alignParentLeft="true"
183             android:layout_alignParentStart="true">
184
185             <ProgressBar
186                 style="?android:attr/progressBarStyleLarge"
187                 android:layout_width="wrap_content"
188                 android:layout_height="wrap_content"
189                 android:id="@+id/progressBar"
190                 android:layout_centerVertical="true"
191                 android:layout_centerHorizontal="true"/>
192
193             <TextView
194                 android:layout_width="wrap_content"
195                 android:layout_height="wrap_content"
196                 android:textAppearance="?android:attr/textAppearanceMedium"
197                 android:text="@string/loading_page"
198                 android:id="@+id/textView7"
199                 android:layout_below="@+id/progressBar"
200                 android:layout_centerHorizontal="true"/>
201         </RelativeLayout>
202
203     </RelativeLayout>
204
205 </RelativeLayout>