res/layout/chat.xml
changeset 500 4da77df8f950
parent 493 56af5554a081
child 517 fd6c52c23165
child 525 32e700f9f07e
equal deleted inserted replaced
499:973f28f405bc 500:4da77df8f950
     1 <?xml version="1.0" encoding="utf-8"?>
     1 <?xml version="1.0" encoding="utf-8"?>
     2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     3 	android:layout_width="wrap_content" android:layout_height="wrap_content"
     3 	android:layout_width="fill_parent" android:layout_height="fill_parent"
     4 	android:orientation="vertical">
     4 	android:orientation="vertical">
     5 	<LinearLayout android:layout_width="fill_parent"
     5 	<LinearLayout android:id="@+id/chat_header"
     6 		android:layout_height="wrap_content" android:gravity="center_vertical"
     6 		android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal"
     7 		android:background="#222222" android:padding="4px">
     7 		android:gravity="center_vertical" android:background="#222222"
       
     8 		android:padding="4px">
     8 		<ImageView android:id="@+id/chat_contact_status_icon"
     9 		<ImageView android:id="@+id/chat_contact_status_icon"
     9 			android:adjustViewBounds="true" android:layout_width="wrap_content"
    10 			android:adjustViewBounds="true" android:layout_width="wrap_content"
    10 			android:layout_height="wrap_content" android:gravity="center_vertical" />
    11 			android:layout_height="wrap_content" android:gravity="center_vertical" />
    11 		<LinearLayout android:orientation="vertical"
    12 		<LinearLayout android:orientation="vertical"
    12 			android:layout_width="fill_parent" android:layout_height="wrap_content"
    13 			android:layout_width="fill_parent" android:layout_height="wrap_content"
    13 			android:paddingLeft="15sp">
    14 			android:paddingLeft="15sp">
    14 			<TextView android:id="@+id/chat_contact_name"
    15 			<TextView android:id="@+id/chat_contact_name"
    15 				android:layout_width="fill_parent" android:layout_height="wrap_content"
    16 				android:layout_width="fill_parent" android:layout_height="wrap_content"
    16 				android:lines="1" android:singleLine="true" android:textSize="14sp"
    17 				android:lines="1" android:singleLine="true" android:textSize="16sp"
    17 				android:textStyle="bold" android:textColor="#FFFFFF" />
    18 				android:textStyle="bold" android:textColor="#FFFFFF" />
    18 			<TextView android:id="@+id/chat_contact_status_msg"
    19 			<TextView android:id="@+id/chat_contact_status_msg"
    19 				android:layout_width="fill_parent" android:layout_height="wrap_content"
    20 				android:layout_width="fill_parent" android:layout_height="wrap_content"
    20 				android:autoLink="all" android:textSize="12sp" android:textColor="#FFFFFF" />
    21 				android:autoLink="all" android:textSize="12sp" android:textColor="#FFFFFF"
       
    22 				android:textColorLink="#FFFFFF" />
    21 		</LinearLayout>
    23 		</LinearLayout>
    22 	</LinearLayout>
    24 	</LinearLayout>
    23 	<View android:layout_width="fill_parent" android:layout_height="2dp"
    25 	<View android:layout_width="fill_parent" android:layout_height="2dp"
    24 		android:fadingEdge="horizontal" android:background="#555555" />
    26 		android:fadingEdge="horizontal" android:background="#555555" />
    25 	<ListView android:id="@+id/chat_messages"
    27 	<ListView android:id="@+id/chat_messages"
    26 		android:layout_width="fill_parent" android:layout_height="fill_parent" />
    28 		android:layout_width="fill_parent"
    27 	<RelativeLayout android:layout_width="fill_parent" android:layout_height="wrap_content">
    29 		android:layout_height="0px" android:layout_weight="1"
    28 		<EditText android:id="@+id/chat_input" android:layout_width="fill_parent"
    30 		android:transcriptMode="normal" android:fastScrollEnabled="true"
    29 			android:layout_height="wrap_content" android:inputType="textShortMessage|textAutoComplete"
    31 		android:smoothScrollbar="false" android:layout_marginBottom="20sp"
    30 			android:imeOptions="actionSend" android:cursorVisible="false"
    32 		android:padding="4px" />
    31 			android:hint="@string/chat_input_default_value"
    33 	<EditText android:id="@+id/chat_input" android:layout_width="fill_parent"
    32 			android:layout_alignParentBottom="true" />
    34 		android:layout_height="wrap_content" android:inputType="textShortMessage|textAutoComplete"
    33 	</RelativeLayout>
    35 		android:imeOptions="actionSend" android:cursorVisible="true"
       
    36 		android:hint="@string/chat_input_default_value" />
    34 </LinearLayout>
    37 </LinearLayout>