]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/src/main/res/layout/activity_preview.xml
984c094180f27c59262ebbe5909c870fb954741f
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / src / main / res / layout / activity_preview.xml
1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2                 xmlns:tools="http://schemas.android.com/tools"
3                 android:layout_width="match_parent"
4                 android:layout_height="match_parent"
5                 android:paddingLeft="@dimen/activity_horizontal_margin"
6                 android:paddingRight="@dimen/activity_horizontal_margin"
7                 android:paddingTop="@dimen/activity_vertical_margin"
8                 android:paddingBottom="@dimen/activity_vertical_margin"
9                 tools:context="cz.cvut.fel.dce.qrscanner.PreviewActivity"
10                 android:weightSum="1"
11                 android:orientation="vertical">
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/textView"/>
19
20     <Button
21         android:layout_width="match_parent"
22         android:layout_height="wrap_content"
23         android:text="@string/butManufacturingGuide"
24         android:id="@+id/butManufactGuide"
25         android:onClick="showManufactGuide"
26         />
27
28     <Button
29         android:layout_width="match_parent"
30         android:layout_height="wrap_content"
31         android:text="@string/butPicturedmanufacturing"
32         android:id="@+id/butManufactImages"
33         android:onClick="showManufactImages"
34         />
35
36     <Button
37         android:layout_width="match_parent"
38         android:layout_height="wrap_content"
39         android:text="@string/butManufacturing"
40         android:id="@+id/butManufacturing"
41         android:onClick="showManufacturing"
42         />
43
44     <Button
45         android:layout_width="match_parent"
46         android:layout_height="wrap_content"
47         android:text="@string/butContacts"
48         android:id="@+id/butContacts"
49         android:onClick="showContacts"
50         />
51
52     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
53                     android:orientation="horizontal"
54                     android:layout_width="match_parent"
55                     android:layout_height="match_parent">
56
57         <ImageView
58             android:layout_width="match_parent"
59             android:layout_height="match_parent"
60             android:id="@+id/imgComponent"
61             android:layout_gravity="center_vertical"
62             android:scaleType="center"
63             android:contentDescription="@string/preview_content_desc"/>
64
65         <RelativeLayout
66             android:layout_width="73dp"
67             android:layout_height="match_parent"
68             android:id="@+id/progress_container"
69             android:layout_alignParentTop="true"
70             android:layout_alignParentEnd="true"
71             android:layout_alignParentStart="true"
72             android:layout_alignParentLeft="true"
73             android:layout_alignParentRight="true">
74
75             <ProgressBar
76                 style="?android:attr/progressBarStyleLarge"
77                 android:layout_width="wrap_content"
78                 android:layout_height="wrap_content"
79                 android:id="@+id/progressBar2"
80                 android:layout_centerVertical="true"
81                 android:layout_centerHorizontal="true"/>
82
83             <TextView
84                 android:layout_width="wrap_content"
85                 android:layout_height="wrap_content"
86                 android:textAppearance="?android:attr/textAppearanceMedium"
87                 android:text="@string/loading_page"
88                 android:id="@+id/textView6"
89                 android:layout_below="@+id/progressBar2"
90                 android:layout_alignStart="@+id/progressBar2"
91                 android:layout_alignLeft="@+id/progressBar2"/>
92
93         </RelativeLayout>
94     </RelativeLayout>
95
96 </LinearLayout>