project_files/Android-build/SDL-android-project/res/layout/team_selector.xml
author Xeli
Sun, 21 Aug 2011 18:14:49 +0200
branchhedgeroid
changeset 5625 9add7b92c5f0
parent 5467 88e25840f532
child 7485 0481bd74267c
permissions -rw-r--r--
Added a check for team count to prevent the engine from crashes when starting with <2 teams + changed the text in the Teams selection menu

<?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"/>
 
  <include layout="@layout/backbutton"/>

  <ImageButton
   	android:id="@+id/btnAdd"
   	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/settings"/>
 <TextView
  	android:id="@+id/txtInfo"
  	android:layout_height="wrap_content"
  	android:layout_width="fill_parent"
  	android:layout_alignParentBottom="true"
  	android:layout_toRightOf="@id/btnBack"
  	android:layout_toLeftOf="@id/btnAdd"
  	android:layout_alignTop="@id/btnBack"
  	android:layout_margin="3dp"
  	android:gravity="center"
  	android:background="@drawable/box"/>
  	
  

  <LinearLayout
  	android:orientation="horizontal"
  	android:layout_width="fill_parent"
  	android:layout_height="fill_parent"
  	android:layout_above="@id/txtInfo"
  	android:layout_margin="3dp">
  	
	  <ListView
	  	android:id="@+id/selectedTeams"
	  	android:layout_height="fill_parent"
	  	android:layout_width="wrap_content"
	  	android:layout_margin="3dp"
	  	android:background="@drawable/box"
	  	android:layout_weight="1"/>
	  	
	  <ListView
	  	android:id="@+id/availableTeams"
	  	android:layout_height="fill_parent"
	  	android:layout_width="wrap_content"
	  	android:layout_margin="3dp"
	  	android:background="@drawable/box"
	  	android:layout_weight="1"/>
  </LinearLayout>
</RelativeLayout>