res/layout/chat.xml
changeset 500 4da77df8f950
parent 493 56af5554a081
child 517 fd6c52c23165
child 525 32e700f9f07e
--- a/res/layout/chat.xml	Sun Nov 08 02:01:19 2009 +0100
+++ b/res/layout/chat.xml	Wed Nov 11 03:05:34 2009 +0100
@@ -1,10 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-	android:layout_width="wrap_content" android:layout_height="wrap_content"
+	android:layout_width="fill_parent" android:layout_height="fill_parent"
 	android:orientation="vertical">
-	<LinearLayout android:layout_width="fill_parent"
-		android:layout_height="wrap_content" android:gravity="center_vertical"
-		android:background="#222222" android:padding="4px">
+	<LinearLayout android:id="@+id/chat_header"
+		android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"
+		android:gravity="center_vertical" android:background="#222222"
+		android:padding="4px">
 		<ImageView android:id="@+id/chat_contact_status_icon"
 			android:adjustViewBounds="true" android:layout_width="wrap_content"
 			android:layout_height="wrap_content" android:gravity="center_vertical" />
@@ -13,22 +14,24 @@
 			android:paddingLeft="15sp">
 			<TextView android:id="@+id/chat_contact_name"
 				android:layout_width="fill_parent" android:layout_height="wrap_content"
-				android:lines="1" android:singleLine="true" android:textSize="14sp"
+				android:lines="1" android:singleLine="true" android:textSize="16sp"
 				android:textStyle="bold" android:textColor="#FFFFFF" />
 			<TextView android:id="@+id/chat_contact_status_msg"
 				android:layout_width="fill_parent" android:layout_height="wrap_content"
-				android:autoLink="all" android:textSize="12sp" android:textColor="#FFFFFF" />
+				android:autoLink="all" android:textSize="12sp" android:textColor="#FFFFFF"
+				android:textColorLink="#FFFFFF" />
 		</LinearLayout>
 	</LinearLayout>
 	<View android:layout_width="fill_parent" android:layout_height="2dp"
 		android:fadingEdge="horizontal" android:background="#555555" />
 	<ListView android:id="@+id/chat_messages"
-		android:layout_width="fill_parent" android:layout_height="fill_parent" />
-	<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
-		<EditText android:id="@+id/chat_input" android:layout_width="fill_parent"
-			android:layout_height="wrap_content" android:inputType="textShortMessage|textAutoComplete"
-			android:imeOptions="actionSend" android:cursorVisible="false"
-			android:hint="@string/chat_input_default_value"
-			android:layout_alignParentBottom="true" />
-	</RelativeLayout>
+		android:layout_width="fill_parent"
+		android:layout_height="0px" android:layout_weight="1"
+		android:transcriptMode="normal" android:fastScrollEnabled="true"
+		android:smoothScrollbar="false" android:layout_marginBottom="20sp"
+		android:padding="4px" />
+	<EditText android:id="@+id/chat_input" android:layout_width="fill_parent"
+		android:layout_height="wrap_content" android:inputType="textShortMessage|textAutoComplete"
+		android:imeOptions="actionSend" android:cursorVisible="true"
+		android:hint="@string/chat_input_default_value" />
 </LinearLayout>