author | Medo <smaxein@googlemail.com> |
Wed, 11 Jul 2012 01:52:01 +0200 | |
changeset 7328 | cd919a2ead4e |
parent 5627 | ce2d92589cbc |
child 7508 | 763d3961400b |
permissions | -rw-r--r-- |
5424 | 1 |
<?xml version="1.0" encoding="utf-8"?> |
2 |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
|
3 |
android:layout_width="fill_parent" |
|
4 |
android:layout_height="fill_parent"> |
|
5 |
<include |
|
6 |
layout="@layout/background"/> |
|
7 |
||
8 |
<ImageView |
|
9 |
android:id="@+id/mapPreview" |
|
10 |
android:layout_width="256dip" |
|
11 |
android:layout_height="128dip" |
|
12 |
android:layout_margin="5dip" |
|
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 | 15 |
android:src="@drawable/backbutton"/> |
16 |
||
17 |
<Spinner |
|
18 |
android:id="@+id/spinMaps" |
|
19 |
android:layout_height="wrap_content" |
|
20 |
android:layout_width="wrap_content" |
|
21 |
android:layout_below="@id/mapPreview" |
|
22 |
android:layout_alignRight="@id/mapPreview" |
|
5607 | 23 |
android:layout_toRightOf="@+id/txtMap" |
24 |
android:background="@drawable/dropdown"/> |
|
5424 | 25 |
<TextView |
26 |
android:id="@id/txtMap" |
|
27 |
android:layout_width="wrap_content" |
|
28 |
android:layout_height="wrap_content" |
|
29 |
android:text="@string/start_map" |
|
30 |
android:layout_alignTop="@id/spinMaps" |
|
31 |
android:layout_alignBottom="@id/spinMaps" |
|
32 |
android:layout_alignLeft="@id/mapPreview" |
|
33 |
android:gravity="center"/> |
|
34 |
||
35 |
<TableLayout |
|
36 |
android:id="@+id/gameOptions" |
|
37 |
android:layout_height="wrap_content" |
|
38 |
android:layout_width="wrap_content" |
|
39 |
android:layout_centerHorizontal="true" |
|
40 |
android:layout_toRightOf="@id/mapPreview" |
|
41 |
android:layout_alignParentRight="true" |
|
42 |
android:padding="3dip" |
|
43 |
android:layout_margin="5dip" |
|
44 |
android:background="@drawable/box" |
|
45 |
android:stretchColumns="0,2" |
|
46 |
android:shrinkColumns="1"> |
|
47 |
||
48 |
<TableRow> |
|
49 |
<TextView |
|
50 |
android:id="@+id/txtGameplay" |
|
51 |
android:layout_height="wrap_content" |
|
52 |
android:layout_width="wrap_content" |
|
53 |
android:text="@string/start_gameplay"/> |
|
54 |
<Spinner |
|
55 |
android:id="@+id/spinGameplay" |
|
56 |
android:layout_height="wrap_content" |
|
57 |
android:layout_width="wrap_content" |
|
5607 | 58 |
android:background="@drawable/dropdown" |
5424 | 59 |
/> |
60 |
</TableRow> |
|
61 |
<TableRow> |
|
62 |
<TextView |
|
63 |
android:id="@+id/txtGamescheme" |
|
64 |
android:layout_height="wrap_content" |
|
65 |
android:layout_width="wrap_content" |
|
66 |
android:text="@string/start_gamescheme"/> |
|
67 |
<Spinner |
|
68 |
android:id="@+id/spinGamescheme" |
|
69 |
android:layout_height="wrap_content" |
|
5607 | 70 |
android:layout_width="wrap_content" |
71 |
android:background="@drawable/dropdown"/> |
|
5424 | 72 |
<ImageButton |
73 |
android:id="@+id/btnGamescheme" |
|
74 |
android:layout_height="wrap_content" |
|
75 |
android:layout_width="wrap_content" |
|
76 |
android:background="@drawable/edit" |
|
77 |
android:adjustViewBounds="true" |
|
78 |
android:scaleType="centerInside" |
|
79 |
android:layout_gravity="center" |
|
80 |
android:padding="3dip"/> |
|
81 |
</TableRow> |
|
82 |
<TableRow> |
|
83 |
<TextView |
|
84 |
android:id="@+id/txtweapons" |
|
85 |
android:layout_height="wrap_content" |
|
86 |
android:layout_width="wrap_content" |
|
87 |
android:layout_below="@id/txtGamescheme" |
|
88 |
android:layout_marginTop="5dip" |
|
89 |
android:text="@string/start_weapons"/> |
|
90 |
||
91 |
<Spinner |
|
92 |
android:id="@+id/spinweapons" |
|
93 |
android:layout_height="wrap_content" |
|
5607 | 94 |
android:layout_width="wrap_content" |
95 |
android:background="@drawable/dropdown"/> |
|
5424 | 96 |
|
97 |
<ImageButton |
|
98 |
android:id="@+id/btnweapons" |
|
99 |
android:layout_height="wrap_content" |
|
100 |
android:layout_width="wrap_content" |
|
101 |
android:background="@drawable/edit" |
|
102 |
android:adjustViewBounds="true" |
|
103 |
android:scaleType="centerInside" |
|
104 |
android:layout_gravity="center" |
|
105 |
android:padding="3dip"/> |
|
106 |
</TableRow> |
|
107 |
</TableLayout> |
|
108 |
||
109 |
<ImageView |
|
110 |
android:id="@+id/imgTheme" |
|
111 |
android:layout_height="wrap_content" |
|
112 |
android:layout_width="wrap_content" |
|
113 |
android:layout_alignTop="@+id/spinTheme" |
|
114 |
android:layout_alignBottom="@id/spinTheme" |
|
115 |
android:layout_alignLeft="@id/gameOptions" |
|
116 |
android:adjustViewBounds="true"/> |
|
117 |
||
118 |
<Spinner |
|
119 |
android:id="@id/spinTheme" |
|
120 |
android:layout_height="wrap_content" |
|
121 |
android:layout_width="wrap_content" |
|
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 | 124 |
android:layout_below="@id/gameOptions" |
125 |
android:background="@drawable/dropdown"/> |
|
5424 | 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 | 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 | 137 |
android:layout_width="120dip" |
138 |
android:layout_height="40dip" |
|
5424 | 139 |
android:adjustViewBounds="true" |
5607 | 140 |
android:scaleType="centerInside" |
141 |
android:background="@android:color/transparent" |
|
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 | 154 |
<ImageButton |
155 |
android:id="@+id/btnStart" |
|
5607 | 156 |
android:layout_width="120dip" |
157 |
android:layout_height="40dip" |
|
5424 | 158 |
android:layout_alignParentBottom="true" |
159 |
android:layout_alignParentRight="true" |
|
160 |
android:adjustViewBounds="true" |
|
161 |
android:scaleType="centerInside" |
|
162 |
android:background="@android:color/transparent" |
|
163 |
android:src="@drawable/startgamebutton"/> |
|
164 |
||
165 |
</RelativeLayout> |
|
166 |