]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blobdiff - 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
index 818eb65be30b4a0bd4b5c478a047d63c428f1494..49a3f371f5922f8de4cd27bdcc0982dd32d5950b 100644 (file)
@@ -1,14 +1,20 @@
 <?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
               android:orientation="horizontal"
               android:layout_width="match_parent"
-              android:layout_height="match_parent">
+              android:layout_height="match_parent"
+              android:weightSum="1">
 
     <LinearLayout
         android:orientation="vertical"
-        android:layout_width="299dp"
+        android:layout_width="wrap_content"
         android:layout_height="match_parent"
-        android:weightSum="1">
+        android:weightSum="1"
+        android:layout_alignParentLeft="true"
+        android:layout_marginLeft="0dp"
+        android:layout_alignParentTop="true"
+        android:layout_marginTop="0dp"
+        android:id="@+id/linearLayout">
 
         <TextView
             android:layout_width="wrap_content"
                     android:id="@+id/butManufactImages"
                     android:onClick="showManufactImages"
                     android:layout_gravity="center_horizontal"
-                    android:layout_column="0"
-                    android:layout_below="@+id/textView4"
+                    android:layout_above="@+id/textView4"
                     android:layout_alignParentLeft="true"
                     android:layout_alignParentStart="true"
-                    android:layout_alignParentBottom="true"/>
+                    android:layout_alignParentBottom="true"
+                    android:layout_below="@+id/textView4"/>
 
                 <Button
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
-                    android:text="@string/butManufacturingGuide"
-                    android:id="@+id/butManufactGuide"
-                    android:onClick="showManufactGuide"
+                    android:text="@string/butManufacturing"
+                    android:id="@+id/butManufacturing"
+                    android:onClick="showManufacturing"
+                    android:layout_below="@+id/textView4"
                     android:layout_gravity="center_horizontal"
-                    android:layout_column="0"
-                    android:layout_above="@+id/textView4"
                     android:layout_alignParentLeft="true"
                     android:layout_alignParentStart="true"
-                    android:layout_alignParentTop="true"/>
+                    android:layout_alignParentTop="true"
+                    android:layout_above="@+id/textView4"/>
+
             </RelativeLayout>
 
             <RelativeLayout
                 <Button
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
-                    android:text="@string/butContacts"
-                    android:id="@+id/butContacts"
-                    android:onClick="showContacts"
-                    android:layout_column="0"
-                    android:layout_below="@+id/textView5"
+                    android:text="@string/butManufacturingGuide"
+                    android:id="@+id/butManufactGuide"
+                    android:onClick="showManufactGuide"
+                    android:layout_gravity="center_horizontal"
+                    android:layout_above="@+id/textView5"
                     android:layout_alignParentLeft="true"
                     android:layout_alignParentStart="true"
-                    android:layout_alignParentBottom="true"/>
+                    android:layout_alignParentTop="true"/>
 
                 <Button
                     android:layout_width="match_parent"
                     android:layout_height="wrap_content"
-                    android:text="@string/butManufacturing"
-                    android:id="@+id/butManufacturing"
-                    android:onClick="showManufacturing"
-                    android:layout_gravity="center_horizontal"
-                    android:layout_column="0"
-                    android:layout_above="@+id/textView5"
+                    android:text="@string/butContacts"
+                    android:id="@+id/butContacts"
+                    android:onClick="showContacts"
+                    android:layout_below="@+id/textView5"
                     android:layout_alignParentLeft="true"
                     android:layout_alignParentStart="true"
-                    android:layout_alignParentTop="true"/>
+                    android:layout_alignParentBottom="true"/>
+
             </RelativeLayout>
         </RelativeLayout>
 
     </LinearLayout>
 
+    <RelativeLayout
+        android:layout_width="wrap_content"
+        android:layout_height="fill_parent"
+        android:layout_marginLeft="27dp"
+        android:layout_marginStart="27dp"
+        android:layout_alignParentTop="true"
+        android:layout_toRightOf="@+id/linearLayout"
+        android:layout_toEndOf="@+id/linearLayout"
+        android:id="@+id/relativeLayout">
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:textAppearance="?android:attr/textAppearanceMedium"
+            android:text="@string/compartment_label"
+            android:id="@+id/textView13"
+            android:layout_alignParentTop="true"
+            android:layout_alignParentLeft="true"
+            android:layout_alignParentStart="true"/>
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:textAppearance="?android:attr/textAppearanceLarge"
+            android:text="1"
+            android:id="@+id/compartment_value"
+            android:textSize="200dp"
+            android:layout_centerVertical="true"
+            android:layout_centerHorizontal="true"/>
+
+    </RelativeLayout>
+
     <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
                     android:orientation="horizontal"
                     android:layout_width="match_parent"
-                    android:layout_height="match_parent">
+                    android:layout_height="match_parent"
+                    android:layout_alignParentTop="true"
+                    android:layout_marginTop="0dp"
+                    android:layout_toRightOf="@+id/relativeLayout"
+                    android:layout_toEndOf="@+id/relativeLayout">
 
         <ImageView
             android:layout_width="match_parent"
             android:layout_height="match_parent"
             android:id="@+id/imgComponent"
             android:layout_gravity="center_horizontal"
-            android:scaleType="center"/>
+            android:scaleType="center"
+            android:contentDescription="@string/preview_content_desc"
+            android:layout_alignParentTop="true"
+            android:layout_alignParentLeft="true"
+            android:layout_alignParentStart="true"/>
 
         <RelativeLayout
             android:layout_width="73dp"
             android:layout_height="match_parent"
             android:id="@+id/progress_container"
             android:layout_alignParentTop="true"
+            android:layout_alignParentRight="true"
             android:layout_alignParentEnd="true"
-            android:layout_alignParentStart="true"
             android:layout_alignParentLeft="true"
-            android:layout_alignParentRight="true">
+            android:layout_alignParentStart="true">
 
             <ProgressBar
                 style="?android:attr/progressBarStyleLarge"
                 android:text="@string/loading_page"
                 android:id="@+id/textView7"
                 android:layout_below="@+id/progressBar"
-                android:layout_alignStart="@+id/progressBar"
-                android:layout_alignLeft="@+id/progressBar"/>
+                android:layout_centerHorizontal="true"/>
         </RelativeLayout>
+
     </RelativeLayout>
 
-</LinearLayout>
\ No newline at end of file
+</RelativeLayout>
\ No newline at end of file