]> rtime.felk.cvut.cz Git - hornmich/skoda-qr-demo.git/commitdiff
Implement land layout of the main screen
authorMichal Horn <hornmich@fel.cvut.cz>
Wed, 11 Feb 2015 13:23:13 +0000 (14:23 +0100)
committerMichal Horn <hornmich@fel.cvut.cz>
Wed, 11 Feb 2015 13:23:13 +0000 (14:23 +0100)
QRScanner/mobile/src/main/res/layout-land/activity_main.xml [new file with mode: 0644]

diff --git a/QRScanner/mobile/src/main/res/layout-land/activity_main.xml b/QRScanner/mobile/src/main/res/layout-land/activity_main.xml
new file mode 100644 (file)
index 0000000..930b306
--- /dev/null
@@ -0,0 +1,33 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+                xmlns:tools="http://schemas.android.com/tools"
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                android:paddingLeft="@dimen/activity_horizontal_margin"
+                android:paddingRight="@dimen/activity_horizontal_margin"
+                android:paddingTop="@dimen/activity_vertical_margin"
+                android:paddingBottom="@dimen/activity_vertical_margin"
+                tools:context=".MainActivity">
+
+    <ImageView
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:id="@+id/imageView"
+        android:src="@drawable/skoda_logo"
+        android:layout_alignParentLeft="true"
+        android:layout_alignParentStart="true"
+        android:layout_alignParentTop="true"
+        android:layout_alignParentBottom="true"
+        android:layout_toLeftOf="@+id/button"
+        android:onClick="findComponent"
+        android:layout_toStartOf="@+id/button"/>
+
+    <Button
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:text="@string/butStartScanning"
+        android:id="@+id/button"
+        android:onClick="findComponent"
+        android:layout_centerVertical="true"
+        android:layout_alignParentRight="true"
+        android:layout_alignParentEnd="true"/>
+</RelativeLayout>