project_files/Android-build/SDL-android-project/res/layout/activity_lobby.xml
changeset 7330 867e4fda496e
parent 7328 cd919a2ead4e
child 7346 b0f67c5b4215
--- a/project_files/Android-build/SDL-android-project/res/layout/activity_lobby.xml	Wed Jul 11 01:52:01 2012 +0200
+++ b/project_files/Android-build/SDL-android-project/res/layout/activity_lobby.xml	Mon Jul 16 20:16:03 2012 +0200
@@ -1,35 +1,61 @@
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
-    android:layout_height="match_parent" >
+    android:layout_height="match_parent"
+    android:orientation="vertical"
+    android:padding="5dp" >
+
+    <FrameLayout
+        android:layout_width="fill_parent"
+        android:layout_height="0dp"
+        android:layout_marginBottom="10dp"
+        android:layout_weight="0.3"
+        android:background="@drawable/box" >
 
-    <TextView
-        android:id="@+id/textbox"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_alignParentLeft="true"
-        android:layout_alignParentRight="true"
-        android:layout_alignParentBottom="true"
-        android:layout_below="@+id/editText"
-        android:text=""
-        tools:context=".LobbyActivity" />
+        <fragment
+            android:id="@+id/roomListFragment"
+            android:layout_width="fill_parent"
+            android:layout_height="fill_parent"
+            class="org.hedgewars.hedgeroid.netplay.RoomlistFragment"
+            tools:layout="@layout/lobby_rooms_fragment" />
+    </FrameLayout>
+
+    <LinearLayout
+        android:layout_width="fill_parent"
+        android:layout_height="0dp"
+        android:layout_weight="0.7"
+        android:baselineAligned="false"
+        android:orientation="horizontal" >
 
-    <EditText
-        android:id="@+id/editText"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_alignParentLeft="true"
-        android:layout_alignParentTop="true"
-        android:layout_toLeftOf="@+id/lobbySendButton"
-        android:ems="10"
-        android:inputType="text" />
+        <FrameLayout
+            android:layout_width="0dp"
+            android:layout_height="fill_parent"
+            android:layout_marginRight="10dp"
+            android:layout_weight="0.7"
+            android:background="@drawable/box" >
+
+            <fragment
+                android:id="@+id/chatFragment"
+                android:layout_width="fill_parent"
+                android:layout_height="fill_parent"
+                class="org.hedgewars.hedgeroid.netplay.LobbyChatFragment"
+                tools:layout="@layout/lobby_chat_fragment" />
+        </FrameLayout>
 
-    <Button
-        android:id="@+id/lobbySendButton"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_alignParentRight="true"
-        android:layout_alignParentTop="true"
-        android:text="Send" />
+        <FrameLayout
+            android:layout_width="0dp"
+            android:layout_height="fill_parent"
+            android:layout_weight="0.3"
+            android:background="@drawable/box" >
 
-</RelativeLayout>
+            <fragment
+                android:id="@+id/playerListFragment"
+                android:layout_width="fill_parent"
+                android:layout_height="fill_parent"
+                class="org.hedgewars.hedgeroid.netplay.PlayerlistFragment"
+                tools:layout="@layout/lobby_players_fragment" />
+        </FrameLayout>
+    </LinearLayout>
+
+</LinearLayout>
\ No newline at end of file