Layouts for the start local game hedgeroid
authorXeli
Thu, 14 Jul 2011 15:48:27 +0200
branchhedgeroid
changeset 5424 0627ac9bd878
parent 5421 67203725a330
child 5428 5d0c5f7a9339
Layouts for the start local game
project_files/Android-build/SDL-android-project/res/layout/background.xml
project_files/Android-build/SDL-android-project/res/layout/config.xml
project_files/Android-build/SDL-android-project/res/layout/listview_item.xml
project_files/Android-build/SDL-android-project/res/layout/starting_game.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project_files/Android-build/SDL-android-project/res/layout/background.xml	Thu Jul 14 15:48:27 2011 +0200
@@ -0,0 +1,8 @@
+<merge xmlns:android="http://schemas.android.com/apk/res/android">
+<ImageView
+	android:layout_width="fill_parent"
+	android:layout_height="fill_parent"
+	android:scaleType="center"
+	android:src="@drawable/background"/>
+
+</merge>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project_files/Android-build/SDL-android-project/res/layout/config.xml	Thu Jul 14 15:48:27 2011 +0200
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent">
+    	
+    <ListView
+    	android:id="@+id/listView"
+    	android:layout_width="wrap_content"
+    	android:layout_height="fill_parent"/>
+    	
+</RelativeLayout>
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project_files/Android-build/SDL-android-project/res/layout/listview_item.xml	Thu Jul 14 15:48:27 2011 +0200
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+	android:layout_width="fill_parent"
+	android:layout_height="wrap_content"
+	android:textSize="10dip"
+	android:textColor="#000"
+	android:gravity="center"/>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/project_files/Android-build/SDL-android-project/res/layout/starting_game.xml	Thu Jul 14 15:48:27 2011 +0200
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent">
+    <include
+    	layout="@layout/background"/>
+     
+    <ImageView
+    	android:id="@+id/mapPreview"
+    	android:layout_width="256dip"
+    	android:layout_height="128dip"
+    	android:layout_margin="5dip"
+    	android:scaleType="fitXY"
+    	android:background="@android:color/transparent"
+    	android:src="@drawable/backbutton"/>
+    
+    <Spinner 
+       	android:id="@+id/spinMaps"
+       	android:layout_height="wrap_content"
+       	android:layout_width="wrap_content"    
+       	android:layout_below="@id/mapPreview"
+       	android:layout_alignRight="@id/mapPreview"
+       	android:layout_toRightOf="@+id/txtMap"/>
+    <TextView
+		android:id="@id/txtMap"
+		android:layout_width="wrap_content"
+		android:layout_height="wrap_content"
+		android:text="@string/start_map"
+		android:layout_alignTop="@id/spinMaps"
+		android:layout_alignBottom="@id/spinMaps"
+		android:layout_alignLeft="@id/mapPreview"
+		android:gravity="center"/>	
+   	
+    <TableLayout 
+       	android:id="@+id/gameOptions" 
+       	android:layout_height="wrap_content" 
+       	android:layout_width="wrap_content"
+       	android:layout_centerHorizontal="true"
+       	android:layout_toRightOf="@id/mapPreview" 
+       	android:layout_alignParentRight="true"
+       	android:padding="3dip"
+       	android:layout_margin="5dip"
+       	android:background="@drawable/box"
+       	android:stretchColumns="0,2"
+       	android:shrinkColumns="1">
+	       	
+       	<TableRow>
+        	 <TextView 
+		        android:id="@+id/txtGameplay"
+		        android:layout_height="wrap_content"
+		        android:layout_width="wrap_content"
+		        android:text="@string/start_gameplay"/>
+        	<Spinner
+	        	android:id="@+id/spinGameplay"
+	        	android:layout_height="wrap_content"
+		        android:layout_width="wrap_content"
+		        />
+		</TableRow>  
+		<TableRow>
+		    <TextView 
+		        android:id="@+id/txtGamescheme"
+		        android:layout_height="wrap_content"
+		        android:layout_width="wrap_content"
+		        android:text="@string/start_gamescheme"/>
+		    <Spinner
+		       	android:id="@+id/spinGamescheme"
+		       	android:layout_height="wrap_content"
+		        android:layout_width="wrap_content"/>
+		    <ImageButton
+		    	android:id="@+id/btnGamescheme"
+		    	android:layout_height="wrap_content"
+		        android:layout_width="wrap_content"
+		        android:background="@drawable/edit"
+		        android:adjustViewBounds="true"
+		        android:scaleType="centerInside"
+		        android:layout_gravity="center"
+		        android:padding="3dip"/>
+		 </TableRow>
+		 <TableRow>    
+		     <TextView 
+		        android:id="@+id/txtweapons"
+		        android:layout_height="wrap_content"
+		        android:layout_width="wrap_content"
+		        android:layout_below="@id/txtGamescheme"
+		        android:layout_marginTop="5dip"
+		        android:text="@string/start_weapons"/>
+	        
+	        <Spinner
+	        	android:id="@+id/spinweapons"
+	        	android:layout_height="wrap_content"
+		        android:layout_width="wrap_content"/>
+		    
+		    <ImageButton
+		    	android:id="@+id/btnweapons"
+		    	android:layout_height="wrap_content"
+		        android:layout_width="wrap_content"
+		        android:background="@drawable/edit"
+		        android:adjustViewBounds="true"
+		        android:scaleType="centerInside"
+		        android:layout_gravity="center"
+		        android:padding="3dip"/>
+        </TableRow>	
+    </TableLayout>
+        
+    <ImageView 
+       	android:id="@+id/imgTheme"
+       	android:layout_height="wrap_content" 
+       	android:layout_width="wrap_content"
+       	android:layout_alignTop="@+id/spinTheme"
+       	android:layout_alignBottom="@id/spinTheme"
+       	android:layout_alignLeft="@id/gameOptions"
+       	android:adjustViewBounds="true"/>
+       
+    <Spinner
+        android:id="@id/spinTheme"
+        android:layout_height="wrap_content"
+        android:layout_width="wrap_content" 
+        android:layout_toRightOf="@+id/imgTheme"
+        android:layout_alignParentRight="true" 
+        android:layout_above="@+id/btnStart"
+       	android:layout_below="@id/gameOptions"/>
+        
+    <ImageButton
+    	android:id="@+id/btnBack"
+    	android:layout_width="wrap_content"
+    	android:layout_height="50dip"
+    	android:layout_alignParentBottom="true"
+    	android:layout_alignParentLeft="true"
+    	android:adjustViewBounds="true"
+    	android:scaleType="centerInside"
+    	android:background="@android:color/transparent"
+    	android:src="@drawable/backbutton"/>
+    	
+    <ImageButton
+    	android:id="@+id/btnStart"
+    	android:layout_width="wrap_content"
+    	android:layout_height="50dip"
+    	android:layout_alignParentBottom="true"
+    	android:layout_alignParentRight="true"
+    	android:adjustViewBounds="true"
+    	android:scaleType="centerInside"
+    	android:background="@android:color/transparent"
+    	android:src="@drawable/startgamebutton"/>
+
+</RelativeLayout>
+