]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blob - QRScanner/mobile/src/main/res/layout/activity_preview.xml
Fix application crashing issue
[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     <LinearLayout
14         android:orientation="horizontal"
15         android:layout_width="match_parent"
16         android:layout_height="wrap_content">
17
18         <LinearLayout
19             android:orientation="vertical"
20             android:layout_width="wrap_content"
21             android:layout_height="match_parent">
22
23             <TextView
24                 android:layout_width="wrap_content"
25                 android:layout_height="wrap_content"
26                 android:textAppearance="?android:attr/textAppearanceMedium"
27                 android:text="@string/previewHeading"
28                 android:id="@+id/textView"/>
29
30             <Button
31                 android:layout_width="match_parent"
32                 android:layout_height="wrap_content"
33                 android:text="@string/butManufacturing"
34                 android:id="@+id/butManufacturing"
35                 android:onClick="showManufacturing"
36                 />
37
38             <Button
39                 android:layout_width="match_parent"
40                 android:layout_height="wrap_content"
41                 android:text="@string/butPicturedmanufacturing"
42                 android:id="@+id/butManufactImages"
43                 android:onClick="showManufactImages"
44                 />
45
46             <Button
47                 android:layout_width="match_parent"
48                 android:layout_height="wrap_content"
49                 android:text="@string/butManufacturingGuide"
50                 android:id="@+id/butManufactGuide"
51                 android:onClick="showManufactGuide"
52                 />
53
54             <Button
55                 android:layout_width="match_parent"
56                 android:layout_height="wrap_content"
57                 android:text="@string/butContacts"
58                 android:id="@+id/butContacts"
59                 android:onClick="showContacts"
60                 />
61
62         </LinearLayout>
63
64         <RelativeLayout
65             android:layout_width="match_parent"
66             android:layout_height="match_parent">
67
68             <TextView
69                 android:layout_width="wrap_content"
70                 android:layout_height="wrap_content"
71                 android:textAppearance="?android:attr/textAppearanceLarge"
72                 android:text="1"
73                 android:id="@+id/compartment_value"
74                 android:layout_centerVertical="true"
75                 android:layout_centerHorizontal="true"
76                 android:textSize="200dp"/>
77
78             <TextView
79                 android:layout_width="wrap_content"
80                 android:layout_height="wrap_content"
81                 android:textAppearance="?android:attr/textAppearanceMedium"
82                 android:text="@string/compartment_label"
83                 android:id="@+id/textView11"
84                 android:layout_alignParentTop="true"
85                 android:layout_centerHorizontal="true"/>
86
87         </RelativeLayout>
88
89     </LinearLayout>
90
91     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
92                     android:orientation="horizontal"
93                     android:layout_width="match_parent"
94                     android:layout_height="match_parent">
95
96         <ImageView
97             android:layout_width="match_parent"
98             android:layout_height="match_parent"
99             android:id="@+id/imgComponent"
100             android:layout_gravity="center_vertical"
101             android:scaleType="center"
102             android:contentDescription="@string/preview_content_desc"/>
103
104         <RelativeLayout
105             android:layout_width="73dp"
106             android:layout_height="match_parent"
107             android:id="@+id/progress_container"
108             android:layout_alignParentTop="true"
109             android:layout_alignParentEnd="true"
110             android:layout_alignParentStart="true"
111             android:layout_alignParentLeft="true"
112             android:layout_alignParentRight="true">
113
114             <ProgressBar
115                 style="?android:attr/progressBarStyleLarge"
116                 android:layout_width="wrap_content"
117                 android:layout_height="wrap_content"
118                 android:id="@+id/progressBar2"
119                 android:layout_centerVertical="true"
120                 android:layout_centerHorizontal="true"/>
121
122             <TextView
123                 android:layout_width="wrap_content"
124                 android:layout_height="wrap_content"
125                 android:textAppearance="?android:attr/textAppearanceMedium"
126                 android:text="@string/loading_page"
127                 android:id="@+id/textView6"
128                 android:layout_below="@+id/progressBar2"
129                 android:layout_alignStart="@+id/progressBar2"
130                 android:layout_alignLeft="@+id/progressBar2"/>
131
132         </RelativeLayout>
133     </RelativeLayout>
134
135 </LinearLayout>