PageRenderTime 12ms CodeModel.GetById 1ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/Code/res/layout/single.xml

https://bitbucket.org/DeveloperUX/behaviortree
XML | 151 lines | 148 code | 3 blank | 0 comment | 0 complexity | 9da9ef7eada0aa8073e5fe88e9dab705 MD5 | raw file
  1<?xml version="1.0" encoding="utf-8"?>
  2<RelativeLayout
  3	android:id="@+id/single_layout"
  4	android:layout_width="fill_parent"
  5	android:layout_height="fill_parent"
  6	android:orientation="vertical"
  7	android:gravity="center_horizontal"
  8	xmlns:android="http://schemas.android.com/apk/res/android"
  9	>
 10	<TextView
 11		android:id="@+id/single_title"
 12		android:layout_width="wrap_content"
 13		android:layout_height="wrap_content"
 14		android:layout_marginTop="20px"
 15		android:text="@string/single_title"
 16		android:textSize="18sp"
 17		android:layout_centerHorizontal="true"		
 18		android:layout_alignParentTop="true"		
 19		>
 20	</TextView>
 21	<ScrollView
 22		android:id="@+id/single_layout_scroll"
 23		android:layout_marginTop="10px"
 24		android:layout_width="fill_parent"
 25		android:layout_height="fill_parent"
 26		android:layout_below="@+id/single_title"	
 27		android:gravity="center_horizontal"
 28		xmlns:android="http://schemas.android.com/apk/res/android"
 29		>
 30		<LinearLayout
 31			android:id="@+id/single_layout_inner_scroll"
 32			android:layout_width="fill_parent"
 33			android:layout_height="fill_parent"
 34			android:orientation="vertical"
 35			android:gravity="left"
 36			android:layout_gravity="center_horizontal"
 37			xmlns:android="http://schemas.android.com/apk/res/android"
 38			>			
 39			<TextView
 40				android:id="@+id/gallery_single_text"
 41				android:layout_width="fill_parent"
 42				android:layout_height="wrap_content"
 43				android:text="Choose a map:"
 44				>
 45			</TextView>
 46			<Gallery
 47				android:id="@+id/maps_single_gal"
 48				android:layout_width="fill_parent"
 49				android:layout_height="wrap_content"
 50				android:layout_gravity="center_horizontal"
 51				>
 52			</Gallery>
 53			<TextView
 54				android:id="@+id/color_single_text"
 55				android:layout_width="fill_parent"
 56				android:layout_height="wrap_content"
 57				android:text="Color for player 1:"
 58				>
 59			</TextView>
 60			<Spinner
 61				android:id="@+id/color_single_spin"
 62				android:layout_width="fill_parent"
 63				android:layout_height="wrap_content"
 64				android:prompt="@string/color_prompt"
 65				>
 66			</Spinner>
 67			<TextView
 68				android:id="@+id/op_single_layout"
 69				android:layout_width="fill_parent"
 70				android:layout_height="wrap_content"
 71				android:text="Number of opponents:"
 72				>
 73			</TextView>
 74			<Spinner
 75				android:id="@+id/op_single_spin"
 76				android:layout_width="fill_parent"
 77				android:layout_height="wrap_content"
 78				android:prompt="@string/op_single_prompt"
 79				>
 80			</Spinner>
 81			<TextView
 82				android:id="@+id/control_single_layout"
 83				android:layout_width="fill_parent"
 84				android:layout_height="wrap_content"
 85				android:text="Control mode:"
 86				>
 87			</TextView>
 88			<Spinner
 89				android:id="@+id/control_single_spin"
 90				android:layout_width="fill_parent"
 91				android:layout_height="wrap_content"
 92				android:prompt="@string/control_prompt"
 93				>
 94			</Spinner>
 95			<CheckBox
 96				android:id="@+id/minimap_single_check"
 97				android:layout_width="fill_parent"
 98				android:layout_height="wrap_content"
 99				android:text="Show Minimap"
100				>
101			</CheckBox>
102			<CheckBox
103				android:id="@+id/powerups_single_check"
104				android:layout_width="fill_parent"
105				android:layout_height="wrap_content"
106				android:text="Power-Ups"
107				>
108			</CheckBox>
109			<TextView
110				android:id="@+id/single_bottom_filler_text_do_not_remove"
111				android:layout_width="wrap_content"
112				android:layout_height="wrap_content"
113				android:padding="10px"
114				android:lines="3"
115				android:text=""
116				>
117			</TextView>
118		</LinearLayout>
119	</ScrollView>
120	<LinearLayout
121		android:id="@+id/bottom_buttons_single_layout"
122		android:layout_width="fill_parent"
123		android:layout_height="wrap_content"
124		android:layout_gravity="center_horizontal"
125		android:orientation="horizontal"
126		android:layout_alignParentBottom="true"	
127		android:weightSum="2"
128		>
129		<Button
130			android:id="@+id/back_single_but"
131			android:layout_width="fill_parent"
132			android:layout_height="wrap_content"
133			android:text="Back"
134			android:gravity="center_horizontal"
135			android:layout_weight="1"
136			>
137		</Button>
138		<Button
139			android:id="@+id/ok_single_but"
140			android:layout_width="fill_parent"
141			android:layout_height="wrap_content"
142			android:text="Play!"
143			android:gravity="center_horizontal"	
144			android:layout_weight="1"
145			>
146		</Button>
147	</LinearLayout>
148</RelativeLayout>
149
150
151