project_files/Android-build/SDL-android-project/res/layout/team_creation.xml
branchhedgeroid
changeset 5467 88e25840f532
child 5607 d3a3e80ad1da
equal deleted inserted replaced
5465:b7e009722465 5467:88e25840f532
       
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <FrameLayout
       
     3 	xmlns:android="http://schemas.android.com/apk/res/android"
       
     4   	android:layout_width="fill_parent"
       
     5 	android:layout_height="fill_parent">
       
     6 	<include layout="@layout/background"/>
       
     7 	<LinearLayout
       
     8 	  xmlns:android="http://schemas.android.com/apk/res/android"
       
     9 	  android:orientation="horizontal"
       
    10 	  android:layout_width="fill_parent"
       
    11 	  android:layout_height="fill_parent"
       
    12 	  android:padding="3dp">
       
    13 	  
       
    14 	  <RelativeLayout
       
    15 	  	android:layout_width="fill_parent"
       
    16 	  	android:layout_height="fill_parent"
       
    17 	  	android:layout_weight="1">
       
    18 	  	<include layout="@layout/backbutton"/>
       
    19 	  	<include layout="@layout/savebutton"/>
       
    20 	  	<ScrollView
       
    21 		  	android:layout_width="fill_parent"
       
    22 		  	android:layout_height="fill_parent"
       
    23 		  	android:layout_above="@+id/btnBack"
       
    24 		  	android:background="@drawable/box"
       
    25 		  	android:scrollbarFadeDuration="0">
       
    26 		  	<TableLayout
       
    27 		  		android:layout_width="fill_parent"
       
    28 		  		android:layout_height="fill_parent"
       
    29 		  		android:stretchColumns="1"
       
    30 		  		android:layout_marginRight="4dip">
       
    31 		  		<TableRow android:padding="2dip">
       
    32 			  		<TextView
       
    33 			  			android:id="@+id/nameTag"
       
    34 			  			android:layout_width="wrap_content"
       
    35 			  			android:layout_height="wrap_content"
       
    36 			  			android:text="@string/name"/>
       
    37 			  		<EditText
       
    38 			  			android:id="@+id/txtName"
       
    39 			  			android:layout_width="fill_parent"
       
    40 			  			android:layout_height="wrap_content"
       
    41 			  			android:layout_margin="3dip"
       
    42 			  			android:background="@drawable/box"
       
    43 			  			android:text="@string/name_default"
       
    44 			  			android:textColor="#FFF"/>
       
    45 		  		</TableRow>
       
    46 		  		<TableRow android:padding="2dip">
       
    47 			  		<TextView
       
    48 			  			android:id="@+id/typeTag"
       
    49 			  			android:layout_width="wrap_content"
       
    50 			  			android:layout_height="fill_parent"
       
    51 			  			android:layout_alignTop="@+id/spinType"
       
    52 			  			android:layout_alignBottom="@id/spinType"
       
    53 			  			android:gravity="center"
       
    54 			  			android:text="@string/type"/>
       
    55 			  		<Spinner
       
    56 			  			android:id="@id/spinType"
       
    57 			  			android:layout_width="fill_parent"
       
    58 			  			android:layout_height="wrap_content"
       
    59 			  			android:layout_marginLeft="3dip"/>
       
    60 		  		</TableRow>
       
    61 		  		<TableRow android:padding="2dip">
       
    62 		  			<TextView
       
    63 			  			android:id="@+id/graveTag"
       
    64 			  			android:layout_width="wrap_content"
       
    65 			  			android:layout_height="fill_parent"
       
    66 			  			android:layout_alignTop="@+id/spinGrave"
       
    67 			  			android:layout_alignBottom="@id/spinGrave"
       
    68 			  			android:gravity="center"
       
    69 			  			android:text="@string/grave"/>
       
    70 			  		<Spinner
       
    71 			  			android:id="@id/spinGrave"
       
    72 			  			android:layout_width="fill_parent"
       
    73 			  			android:layout_height="wrap_content"
       
    74 			  			android:layout_marginLeft="3dip"/>
       
    75 		  		</TableRow>
       
    76 		  		<TableRow android:padding="2dip">
       
    77 		   			<TextView
       
    78 			  			android:id="@+id/FlagTag"
       
    79 			  			android:layout_width="wrap_content"
       
    80 			  			android:layout_height="fill_parent"
       
    81 			  			android:layout_alignTop="@+id/spinFlag"
       
    82 			  			android:layout_alignBottom="@id/spinFlag"
       
    83 			  			android:gravity="center"
       
    84 			  			android:text="@string/flag"/>
       
    85 			  		<Spinner
       
    86 			  			android:id="@id/spinFlag"
       
    87 			  			android:layout_width="fill_parent"
       
    88 			  			android:layout_height="wrap_content"
       
    89 			  			android:layout_marginLeft="3dip"/>
       
    90 		  		</TableRow>
       
    91 		  		<TableRow android:padding="2dip">
       
    92 		  		  	<TextView
       
    93 			  			android:id="@+id/voiceTag"
       
    94 			  			android:layout_width="wrap_content"
       
    95 			  			android:layout_height="fill_parent"
       
    96 			  			android:layout_alignTop="@+id/spinVoice"
       
    97 			  			android:layout_alignBottom="@id/spinVoice"
       
    98 			  			android:gravity="center"
       
    99 			  			android:text="@string/voice"/>
       
   100 			  		<RelativeLayout
       
   101 			  			android:layout_width="fill_parent"
       
   102 			  			android:layout_height="wrap_content"
       
   103 			  			android:layout_marginLeft="3dip">
       
   104 			  			<ImageButton
       
   105 			  				android:id="@+id/btnPlay"
       
   106 			  				android:layout_width="wrap_content"
       
   107 			  				android:layout_height="wrap_content"
       
   108 			  				android:layout_alignParentRight="true"
       
   109 			  				android:adjustViewBounds="true"
       
   110 			  				android:scaleType="centerInside"
       
   111 			  				android:src="@drawable/playsound"
       
   112 			  				android:background="@android:color/transparent"/>
       
   113 			  			<Spinner
       
   114 			  				android:id="@+id/spinVoice"
       
   115 			  				android:layout_width="fill_parent"
       
   116 			  				android:layout_height="fill_parent"
       
   117 			  				android:layout_centerVertical="true"
       
   118 			  				android:layout_alignParentLeft="true"
       
   119 			  				android:layout_toLeftOf="@id/btnPlay"/>
       
   120 			  		</RelativeLayout>
       
   121 		  		</TableRow>
       
   122 		  		<TableRow android:padding="2dip">
       
   123 		  			<TextView
       
   124 			  			android:id="@+id/fortTag"
       
   125 			  			android:layout_width="wrap_content"
       
   126 			  			android:layout_height="wrap_content"
       
   127 			  			android:layout_marginTop="2dip"
       
   128 			  			android:gravity="top"
       
   129 			  			android:text="@string/fort"/>
       
   130 		  			<RelativeLayout
       
   131 			  			android:layout_width="fill_parent"
       
   132 			  			android:layout_height="wrap_content"
       
   133 			  			android:layout_marginLeft="3dip">
       
   134 			  			<Spinner
       
   135 			  				android:id="@+id/spinFort"
       
   136 			  				android:layout_width="fill_parent"
       
   137 			  				android:layout_height="wrap_content"
       
   138 			  				android:layout_centerHorizontal="true"/>
       
   139 			  			<ImageView
       
   140 			  				android:id="@+id/imgFort"
       
   141 			  				android:layout_width="128dip"
       
   142 			  				android:layout_height="128dip"
       
   143 			  				android:layout_centerHorizontal="true"
       
   144 			  				android:layout_below="@id/spinFort"
       
   145 			  				android:adjustViewBounds="true"
       
   146 			  				android:scaleType="centerInside"
       
   147 			  				android:background="@android:color/transparent"
       
   148 			  				android:src="@drawable/fort"/>
       
   149 			  			
       
   150 			  		</RelativeLayout>
       
   151 		  		</TableRow>
       
   152 		  	</TableLayout>
       
   153 		  </ScrollView>
       
   154 	  </RelativeLayout>
       
   155 	  
       
   156 	  <ScrollView
       
   157 	  	android:id="@+id/scroller"
       
   158 	  	android:layout_width="fill_parent"
       
   159 	  	android:layout_height="fill_parent"
       
   160 	  	android:layout_weight="1"
       
   161 	  	android:background="@drawable/box"
       
   162 	  	android:scrollbarFadeDuration="0">
       
   163 	  	<LinearLayout
       
   164 	  		android:id="@+id/HogsContainer"
       
   165 	  		android:orientation="vertical"
       
   166 	  		android:layout_width="fill_parent"
       
   167 	  		android:layout_height="fill_parent">
       
   168 	  		<include layout="@layout/team_creation_entry"/>
       
   169 	  		<include layout="@layout/team_creation_entry"/>
       
   170 	  		<include layout="@layout/team_creation_entry"/>
       
   171 	  		<include layout="@layout/team_creation_entry"/>
       
   172 	  		<include layout="@layout/team_creation_entry"/>
       
   173 	  		<include layout="@layout/team_creation_entry"/>
       
   174 	  		<include layout="@layout/team_creation_entry"/>
       
   175 	  		<include layout="@layout/team_creation_entry"/>
       
   176 	  	</LinearLayout>
       
   177 	  </ScrollView>
       
   178 	</LinearLayout>
       
   179 </FrameLayout>