]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blobdiff - QRScanner/mobile/src/main/res/layout/activity_preview.xml
Rename menu items, add icons
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / src / main / res / layout / activity_preview.xml
index 36845ed316769cb76a888e7c15313c2b266a82ed..804a01f0618ade332af7c0997a544311491690b3 100644 (file)
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:textAppearance="?android:attr/textAppearanceMedium"
-        android:text="Select document to view"
+        android:text="@string/previewHeading"
         android:id="@+id/textView"/>
 
     <Button
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:text="Kontakty"
-        android:id="@+id/butContacts"
-        android:onClick="showContacts"
-        android:layout_gravity="center_horizontal"/>
-
-    <Button
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:text="Vyrobni postup"
+        android:text="@string/butManufacturing"
         android:id="@+id/butManufacturing"
         android:onClick="showManufacturing"
-        android:layout_gravity="center_horizontal"/>
+        />
 
     <Button
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:text="Obrazovy vyrobni postup"
+        android:text="@string/butPicturedmanufacturing"
         android:id="@+id/butManufactImages"
         android:onClick="showManufactImages"
-        android:layout_gravity="center_horizontal"/>
+        />
 
     <Button
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:text="Dilenska prirucka"
+        android:text="@string/butManufacturingGuide"
         android:id="@+id/butManufactGuide"
         android:onClick="showManufactGuide"
-        android:layout_gravity="center_horizontal"/>
+        />
 
-    <ImageView
+    <Button
         android:layout_width="match_parent"
-        android:layout_height="match_parent"
-        android:id="@+id/imgComponent"
-        android:layout_weight="0.95"
-        android:layout_gravity="center_vertical"/>
+        android:layout_height="wrap_content"
+        android:text="@string/butContacts"
+        android:id="@+id/butContacts"
+        android:onClick="showContacts"
+        />
+
+    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+                    android:orientation="horizontal"
+                    android:layout_width="match_parent"
+                    android:layout_height="match_parent">
+
+        <ImageView
+            android:layout_width="match_parent"
+            android:layout_height="match_parent"
+            android:id="@+id/imgComponent"
+            android:layout_gravity="center_vertical"
+            android:scaleType="center"
+            android:contentDescription="@string/preview_content_desc"/>
+
+        <RelativeLayout
+            android:layout_width="73dp"
+            android:layout_height="match_parent"
+            android:id="@+id/progress_container"
+            android:layout_alignParentTop="true"
+            android:layout_alignParentEnd="true"
+            android:layout_alignParentStart="true"
+            android:layout_alignParentLeft="true"
+            android:layout_alignParentRight="true">
+
+            <ProgressBar
+                style="?android:attr/progressBarStyleLarge"
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:id="@+id/progressBar2"
+                android:layout_centerVertical="true"
+                android:layout_centerHorizontal="true"/>
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:textAppearance="?android:attr/textAppearanceMedium"
+                android:text="@string/loading_page"
+                android:id="@+id/textView6"
+                android:layout_below="@+id/progressBar2"
+                android:layout_alignStart="@+id/progressBar2"
+                android:layout_alignLeft="@+id/progressBar2"/>
+
+        </RelativeLayout>
+    </RelativeLayout>
 
 </LinearLayout>