project_files/Android-build/SDL-android-project/res/layout/starting_game.xml
author Xeli
Sun, 21 Aug 2011 19:40:01 +0200
branchhedgeroid
changeset 5627 ce2d92589cbc
parent 5607 d3a3e80ad1da
child 7508 763d3961400b
permissions -rw-r--r--
Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5424
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
     1
<?xml version="1.0" encoding="utf-8"?>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
     2
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
     3
    android:layout_width="fill_parent"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
     4
    android:layout_height="fill_parent">
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
     5
    <include
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
     6
    	layout="@layout/background"/>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
     7
     
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
     8
    <ImageView
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
     9
    	android:id="@+id/mapPreview"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    10
    	android:layout_width="256dip"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    11
    	android:layout_height="128dip"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    12
    	android:layout_margin="5dip"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    13
    	android:scaleType="fitXY"
5467
88e25840f532 Main activities for starting up the game, changing gameconfig, selecting and creating teams with their respective layouts and values
Xeli
parents: 5424
diff changeset
    14
    	android:background="@drawable/box"
5424
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    15
    	android:src="@drawable/backbutton"/>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    16
    
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    17
    <Spinner 
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    18
       	android:id="@+id/spinMaps"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    19
       	android:layout_height="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    20
       	android:layout_width="wrap_content"    
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    21
       	android:layout_below="@id/mapPreview"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    22
       	android:layout_alignRight="@id/mapPreview"
5607
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
    23
       	android:layout_toRightOf="@+id/txtMap"
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
    24
       	android:background="@drawable/dropdown"/>
5424
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    25
    <TextView
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    26
		android:id="@id/txtMap"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    27
		android:layout_width="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    28
		android:layout_height="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    29
		android:text="@string/start_map"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    30
		android:layout_alignTop="@id/spinMaps"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    31
		android:layout_alignBottom="@id/spinMaps"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    32
		android:layout_alignLeft="@id/mapPreview"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    33
		android:gravity="center"/>	
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    34
   	
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    35
    <TableLayout 
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    36
       	android:id="@+id/gameOptions" 
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    37
       	android:layout_height="wrap_content" 
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    38
       	android:layout_width="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    39
       	android:layout_centerHorizontal="true"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    40
       	android:layout_toRightOf="@id/mapPreview" 
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    41
       	android:layout_alignParentRight="true"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    42
       	android:padding="3dip"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    43
       	android:layout_margin="5dip"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    44
       	android:background="@drawable/box"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    45
       	android:stretchColumns="0,2"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    46
       	android:shrinkColumns="1">
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    47
	       	
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    48
       	<TableRow>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    49
        	 <TextView 
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    50
		        android:id="@+id/txtGameplay"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    51
		        android:layout_height="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    52
		        android:layout_width="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    53
		        android:text="@string/start_gameplay"/>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    54
        	<Spinner
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    55
	        	android:id="@+id/spinGameplay"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    56
	        	android:layout_height="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    57
		        android:layout_width="wrap_content"
5607
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
    58
		        android:background="@drawable/dropdown"
5424
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    59
		        />
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    60
		</TableRow>  
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    61
		<TableRow>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    62
		    <TextView 
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    63
		        android:id="@+id/txtGamescheme"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    64
		        android:layout_height="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    65
		        android:layout_width="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    66
		        android:text="@string/start_gamescheme"/>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    67
		    <Spinner
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    68
		       	android:id="@+id/spinGamescheme"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    69
		       	android:layout_height="wrap_content"
5607
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
    70
		        android:layout_width="wrap_content"
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
    71
		        android:background="@drawable/dropdown"/>
5424
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    72
		    <ImageButton
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    73
		    	android:id="@+id/btnGamescheme"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    74
		    	android:layout_height="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    75
		        android:layout_width="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    76
		        android:background="@drawable/edit"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    77
		        android:adjustViewBounds="true"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    78
		        android:scaleType="centerInside"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    79
		        android:layout_gravity="center"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    80
		        android:padding="3dip"/>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    81
		 </TableRow>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    82
		 <TableRow>    
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    83
		     <TextView 
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    84
		        android:id="@+id/txtweapons"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    85
		        android:layout_height="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    86
		        android:layout_width="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    87
		        android:layout_below="@id/txtGamescheme"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    88
		        android:layout_marginTop="5dip"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    89
		        android:text="@string/start_weapons"/>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    90
	        
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    91
	        <Spinner
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    92
	        	android:id="@+id/spinweapons"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    93
	        	android:layout_height="wrap_content"
5607
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
    94
		        android:layout_width="wrap_content"
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
    95
		        android:background="@drawable/dropdown"/>
5424
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    96
		    
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    97
		    <ImageButton
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    98
		    	android:id="@+id/btnweapons"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
    99
		    	android:layout_height="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   100
		        android:layout_width="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   101
		        android:background="@drawable/edit"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   102
		        android:adjustViewBounds="true"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   103
		        android:scaleType="centerInside"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   104
		        android:layout_gravity="center"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   105
		        android:padding="3dip"/>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   106
        </TableRow>	
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   107
    </TableLayout>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   108
        
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   109
    <ImageView 
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   110
       	android:id="@+id/imgTheme"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   111
       	android:layout_height="wrap_content" 
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   112
       	android:layout_width="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   113
       	android:layout_alignTop="@+id/spinTheme"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   114
       	android:layout_alignBottom="@id/spinTheme"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   115
       	android:layout_alignLeft="@id/gameOptions"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   116
       	android:adjustViewBounds="true"/>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   117
       
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   118
    <Spinner
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   119
        android:id="@id/spinTheme"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   120
        android:layout_height="wrap_content"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   121
        android:layout_width="wrap_content" 
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   122
        android:layout_toRightOf="@+id/imgTheme"
5467
88e25840f532 Main activities for starting up the game, changing gameconfig, selecting and creating teams with their respective layouts and values
Xeli
parents: 5424
diff changeset
   123
        android:layout_alignParentRight="true"
5607
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
   124
       	android:layout_below="@id/gameOptions"
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
   125
       	android:background="@drawable/dropdown"/>
5424
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   126
        
5467
88e25840f532 Main activities for starting up the game, changing gameconfig, selecting and creating teams with their respective layouts and values
Xeli
parents: 5424
diff changeset
   127
	<include layout="@layout/backbutton"/>
5627
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   128
    
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   129
    <LinearLayout
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   130
    	android:layout_width="wrap_content"
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   131
    	android:layout_height="wrap_content"
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   132
    	android:layout_alignParentBottom="true"
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   133
    	android:layout_centerHorizontal="true"
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   134
    	android:orientation="horizontal">
5424
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   135
    <ImageButton
5467
88e25840f532 Main activities for starting up the game, changing gameconfig, selecting and creating teams with their respective layouts and values
Xeli
parents: 5424
diff changeset
   136
    	android:id="@+id/btnTeams"
5607
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
   137
    	android:layout_width="120dip"
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
   138
    	android:layout_height="40dip"
5424
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   139
    	android:adjustViewBounds="true"
5607
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
   140
    	android:scaleType="centerInside"
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
   141
    	android:background="@android:color/transparent"
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
   142
    	android:src="@drawable/teams"/>
5627
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   143
    <ImageView
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   144
    	android:id="@+id/imgTeamsCount"
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   145
    	android:layout_width="40dip"
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   146
    	android:layout_height="40dip"
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   147
    	android:adjustViewBounds="true"
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   148
    	android:scaleType="centerInside"
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   149
    	android:background="@android:color/transparent"
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   150
    	android:src="@drawable/teamcount"/>
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   151
        
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   152
    </LinearLayout>
ce2d92589cbc Added a visual imageview to show how many teams have been selected, plus feedback when creating a new team:
Xeli
parents: 5607
diff changeset
   153
5424
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   154
    <ImageButton
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   155
    	android:id="@+id/btnStart"
5607
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
   156
    	android:layout_width="120dip"
d3a3e80ad1da Added several graphics
Xeli
parents: 5467
diff changeset
   157
    	android:layout_height="40dip"
5424
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   158
    	android:layout_alignParentBottom="true"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   159
    	android:layout_alignParentRight="true"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   160
    	android:adjustViewBounds="true"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   161
    	android:scaleType="centerInside"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   162
    	android:background="@android:color/transparent"
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   163
    	android:src="@drawable/startgamebutton"/>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   164
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   165
</RelativeLayout>
0627ac9bd878 Layouts for the start local game
Xeli
parents:
diff changeset
   166