]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/src/main/res/layout-land/activity_preview.xml
d85e88312cc1a6207628275dd145dad50753c357
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / src / main / res / layout-land / activity_preview.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <LinearLayout 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
7     <LinearLayout
8         android:orientation="vertical"
9         android:layout_width="299dp"
10         android:layout_height="match_parent"
11         android:weightSum="1">
12
13         <TextView
14             android:layout_width="wrap_content"
15             android:layout_height="wrap_content"
16             android:textAppearance="?android:attr/textAppearanceMedium"
17             android:text="@string/previewHeading"
18             android:id="@+id/textView2"/>
19
20         <RelativeLayout
21             android:layout_width="match_parent"
22             android:layout_height="match_parent"
23             android:layout_gravity="center_horizontal">
24
25             <TextView
26                 android:layout_width="wrap_content"
27                 android:layout_height="wrap_content"
28                 android:textAppearance="?android:attr/textAppearanceSmall"
29                 android:id="@+id/textView3"
30                 android:layout_centerVertical="true"
31                 android:layout_centerHorizontal="true"/>
32
33             <RelativeLayout
34                 android:layout_width="fill_parent"
35                 android:layout_height="fill_parent"
36                 android:layout_above="@+id/textView3"
37                 android:layout_centerHorizontal="true">
38
39                 <TextView
40                     android:layout_width="wrap_content"
41                     android:layout_height="wrap_content"
42                     android:textAppearance="?android:attr/textAppearanceSmall"
43                     android:id="@+id/textView4"
44                     android:layout_centerVertical="true"
45                     android:layout_centerHorizontal="true"/>
46
47                 <Button
48                     android:layout_width="match_parent"
49                     android:layout_height="wrap_content"
50                     android:text="@string/butPicturedmanufacturing"
51                     android:id="@+id/butManufactImages"
52                     android:onClick="showManufactImages"
53                     android:layout_gravity="center_horizontal"
54                     android:layout_above="@+id/textView4"
55                     android:layout_alignParentLeft="true"
56                     android:layout_alignParentStart="true"
57                     android:layout_alignParentBottom="true"
58                     android:layout_below="@+id/textView4"/>
59
60                 <Button
61                     android:layout_width="match_parent"
62                     android:layout_height="wrap_content"
63                     android:text="@string/butManufacturing"
64                     android:id="@+id/butManufacturing"
65                     android:onClick="showManufacturing"
66                     android:layout_below="@+id/textView4"
67                     android:layout_gravity="center_horizontal"
68                     android:layout_alignParentLeft="true"
69                     android:layout_alignParentStart="true"
70                     android:layout_alignParentTop="true"
71                     android:layout_above="@+id/textView4"/>
72
73             </RelativeLayout>
74
75             <RelativeLayout
76                 android:layout_width="fill_parent"
77                 android:layout_height="fill_parent"
78                 android:layout_below="@+id/textView3"
79                 android:layout_centerHorizontal="true">
80
81                 <TextView
82                     android:layout_width="wrap_content"
83                     android:layout_height="wrap_content"
84                     android:textAppearance="?android:attr/textAppearanceSmall"
85                     android:id="@+id/textView5"
86                     android:layout_centerVertical="true"
87                     android:layout_centerHorizontal="true"/>
88
89                 <Button
90                     android:layout_width="match_parent"
91                     android:layout_height="wrap_content"
92                     android:text="@string/butManufacturingGuide"
93                     android:id="@+id/butManufactGuide"
94                     android:onClick="showManufactGuide"
95                     android:layout_gravity="center_horizontal"
96                     android:layout_above="@+id/textView5"
97                     android:layout_alignParentLeft="true"
98                     android:layout_alignParentStart="true"
99                     android:layout_alignParentTop="true"/>
100
101                 <Button
102                     android:layout_width="match_parent"
103                     android:layout_height="wrap_content"
104                     android:text="@string/butContacts"
105                     android:id="@+id/butContacts"
106                     android:onClick="showContacts"
107                     android:layout_below="@+id/textView5"
108                     android:layout_alignParentLeft="true"
109                     android:layout_alignParentStart="true"
110                     android:layout_alignParentBottom="true"/>
111
112             </RelativeLayout>
113         </RelativeLayout>
114
115     </LinearLayout>
116
117     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
118                     android:orientation="horizontal"
119                     android:layout_width="match_parent"
120                     android:layout_height="match_parent">
121
122         <ImageView
123             android:layout_width="match_parent"
124             android:layout_height="match_parent"
125             android:id="@+id/imgComponent"
126             android:layout_gravity="center_horizontal"
127             android:scaleType="center"
128             android:contentDescription="@string/preview_content_desc"/>
129
130         <RelativeLayout
131             android:layout_width="73dp"
132             android:layout_height="match_parent"
133             android:id="@+id/progress_container"
134             android:layout_alignParentTop="true"
135             android:layout_alignParentEnd="true"
136             android:layout_alignParentStart="true"
137             android:layout_alignParentLeft="true"
138             android:layout_alignParentRight="true">
139
140             <ProgressBar
141                 style="?android:attr/progressBarStyleLarge"
142                 android:layout_width="wrap_content"
143                 android:layout_height="wrap_content"
144                 android:id="@+id/progressBar"
145                 android:layout_centerVertical="true"
146                 android:layout_centerHorizontal="true"/>
147
148             <TextView
149                 android:layout_width="wrap_content"
150                 android:layout_height="wrap_content"
151                 android:textAppearance="?android:attr/textAppearanceMedium"
152                 android:text="@string/loading_page"
153                 android:id="@+id/textView7"
154                 android:layout_below="@+id/progressBar"
155                 android:layout_alignStart="@+id/progressBar"
156                 android:layout_alignLeft="@+id/progressBar"/>
157         </RelativeLayout>
158     </RelativeLayout>
159
160 </LinearLayout>