background now properly resizes on tablets
authorXeli
Thu, 26 Jan 2012 22:20:21 +0100
changeset 6602 9bd4985120b3
parent 6601 5965e2927b3d
child 6603 ef9ed71e3cf7
background now properly resizes on tablets
project_files/Android-build/SDL-android-project/res/layout/background.xml
project_files/Android-build/SDL-android-project/res/layout/main.xml
--- a/project_files/Android-build/SDL-android-project/res/layout/background.xml	Thu Jan 26 22:19:52 2012 +0100
+++ b/project_files/Android-build/SDL-android-project/res/layout/background.xml	Thu Jan 26 22:20:21 2012 +0100
@@ -3,6 +3,6 @@
 <ImageView
 	android:layout_width="fill_parent"
 	android:layout_height="fill_parent"
-	android:scaleType="center"
+	android:scaleType="centerCrop"
 	android:src="@drawable/background"/>
 </merge>
\ No newline at end of file
--- a/project_files/Android-build/SDL-android-project/res/layout/main.xml	Thu Jan 26 22:19:52 2012 +0100
+++ b/project_files/Android-build/SDL-android-project/res/layout/main.xml	Thu Jan 26 22:20:21 2012 +0100
@@ -1,4 +1,9 @@
 <?xml version="1.0" encoding="utf-8"?>
+<FrameLayout
+	xmlns:android="http://schemas.android.com/apk/res/android"
+  	android:layout_width="fill_parent"
+	android:layout_height="fill_parent">
+	<include layout="@layout/background"/>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="vertical"
     android:layout_width="fill_parent"
@@ -17,4 +22,4 @@
     	android:text="startgame"/>
     	
 </LinearLayout>
-
+</FrameLayout>
\ No newline at end of file