]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/src/main/res/layout-land/activity_preview.xml
ccb1be8a32b299f7366445451c3e186c42b23edc
[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_below="@+id/textView4"
55                     android:layout_alignParentLeft="true"
56                     android:layout_alignParentStart="true"
57                     android:layout_alignParentBottom="true"/>
58
59                 <Button
60                     android:layout_width="match_parent"
61                     android:layout_height="wrap_content"
62                     android:text="@string/butManufacturingGuide"
63                     android:id="@+id/butManufactGuide"
64                     android:onClick="showManufactGuide"
65                     android:layout_gravity="center_horizontal"
66                     android:layout_above="@+id/textView4"
67                     android:layout_alignParentLeft="true"
68                     android:layout_alignParentStart="true"
69                     android:layout_alignParentTop="true"/>
70             </RelativeLayout>
71
72             <RelativeLayout
73                 android:layout_width="fill_parent"
74                 android:layout_height="fill_parent"
75                 android:layout_below="@+id/textView3"
76                 android:layout_centerHorizontal="true">
77
78                 <TextView
79                     android:layout_width="wrap_content"
80                     android:layout_height="wrap_content"
81                     android:textAppearance="?android:attr/textAppearanceSmall"
82                     android:id="@+id/textView5"
83                     android:layout_centerVertical="true"
84                     android:layout_centerHorizontal="true"/>
85
86                 <Button
87                     android:layout_width="match_parent"
88                     android:layout_height="wrap_content"
89                     android:text="@string/butContacts"
90                     android:id="@+id/butContacts"
91                     android:onClick="showContacts"
92                     android:layout_below="@+id/textView5"
93                     android:layout_alignParentLeft="true"
94                     android:layout_alignParentStart="true"
95                     android:layout_alignParentBottom="true"/>
96
97                 <Button
98                     android:layout_width="match_parent"
99                     android:layout_height="wrap_content"
100                     android:text="@string/butManufacturing"
101                     android:id="@+id/butManufacturing"
102                     android:onClick="showManufacturing"
103                     android:layout_gravity="center_horizontal"
104                     android:layout_above="@+id/textView5"
105                     android:layout_alignParentLeft="true"
106                     android:layout_alignParentStart="true"
107                     android:layout_alignParentTop="true"/>
108             </RelativeLayout>
109         </RelativeLayout>
110
111     </LinearLayout>
112
113     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
114                     android:orientation="horizontal"
115                     android:layout_width="match_parent"
116                     android:layout_height="match_parent">
117
118         <ImageView
119             android:layout_width="match_parent"
120             android:layout_height="match_parent"
121             android:id="@+id/imgComponent"
122             android:layout_gravity="center_horizontal"
123             android:scaleType="center"
124             android:contentDescription="@string/preview_content_desc"/>
125
126         <RelativeLayout
127             android:layout_width="73dp"
128             android:layout_height="match_parent"
129             android:id="@+id/progress_container"
130             android:layout_alignParentTop="true"
131             android:layout_alignParentEnd="true"
132             android:layout_alignParentStart="true"
133             android:layout_alignParentLeft="true"
134             android:layout_alignParentRight="true">
135
136             <ProgressBar
137                 style="?android:attr/progressBarStyleLarge"
138                 android:layout_width="wrap_content"
139                 android:layout_height="wrap_content"
140                 android:id="@+id/progressBar"
141                 android:layout_centerVertical="true"
142                 android:layout_centerHorizontal="true"/>
143
144             <TextView
145                 android:layout_width="wrap_content"
146                 android:layout_height="wrap_content"
147                 android:textAppearance="?android:attr/textAppearanceMedium"
148                 android:text="@string/loading_page"
149                 android:id="@+id/textView7"
150                 android:layout_below="@+id/progressBar"
151                 android:layout_alignStart="@+id/progressBar"
152                 android:layout_alignLeft="@+id/progressBar"/>
153         </RelativeLayout>
154     </RelativeLayout>
155
156 </LinearLayout>