]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/blobdiff - QRScanner/mobile/src/main/res/layout/activity_preview.xml
Implement preview by the PdfView widget
[hornmich/skoda-qr-demo.git] / QRScanner / mobile / src / main / res / layout / activity_preview.xml
index 7573b142389c8233cfbd16ddf48939f78084a216..f2afe0295ec9bab9a570dcb5f9f4a1b0ef14ce2f 100644 (file)
         android:onClick="showContacts"
         />
 
-    <ImageView
-        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:scaleType="center"/>
+    <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"/>
+
+        <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>