res/layout/chat.xml
changeset 1044 197a85a35cba
parent 1043 7d6f2526244a
child 1045 e5a970600066
equal deleted inserted replaced
1043:7d6f2526244a 1044:197a85a35cba
     1 <?xml version="1.0" encoding="utf-8"?>
       
     2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
       
     3 	android:layout_width="fill_parent" android:layout_height="fill_parent"
       
     4 	android:orientation="vertical">
       
     5 	<LinearLayout android:id="@+id/chat_header"
       
     6 		android:layout_width="fill_parent" android:layout_height="wrap_content"
       
     7 		android:orientation="horizontal" android:gravity="center_vertical"
       
     8 		android:background="#222222"
       
     9 		 android:padding="4dp">
       
    10 		<ImageView android:id="@+id/chat_contact_status_icon"
       
    11 			android:src="@drawable/avatar_status"
       
    12 			android:layout_width="48dip"
       
    13 			android:layout_height="48dip"
       
    14 			/>
       
    15 		<LinearLayout android:orientation="vertical"
       
    16 			android:layout_width="fill_parent" android:layout_height="wrap_content"
       
    17 			android:paddingLeft="15sp">
       
    18 			<TextView android:id="@+id/chat_contact_name"
       
    19 				android:layout_width="fill_parent" android:layout_height="wrap_content"
       
    20 				android:lines="1" android:singleLine="true"
       
    21 				android:textStyle="bold" android:textColor="@android:color/white"
       
    22 				android:focusable="true"/>
       
    23 			<TextView android:id="@+id/chat_contact_status_msg"
       
    24 				android:layout_width="fill_parent" android:layout_height="wrap_content"
       
    25 				android:autoLink="all" android:textSize="12sp" android:textColor="@android:color/white"
       
    26 				android:textColorLink="#FFFFFF"
       
    27 				android:focusable="true"/>
       
    28 			<TextView android:id="@+id/chat_contact_chat_state"
       
    29 				android:layout_width="fill_parent" android:layout_height="wrap_content"
       
    30 				android:textStyle="italic" android:textSize="12sp"
       
    31 				android:focusable="true"/>
       
    32 			<TextView android:id="@+id/chat_contact_otr_state"
       
    33 				android:layout_width="fill_parent" android:layout_height="wrap_content"
       
    34 				android:textStyle="italic" android:textSize="12sp"
       
    35 				android:focusable="true"/>
       
    36 		</LinearLayout>
       
    37 	</LinearLayout>
       
    38 	<View android:layout_width="fill_parent" android:layout_height="2dp"
       
    39 		android:fadingEdge="horizontal" android:background="#555555" />
       
    40 	<ListView android:id="@+id/chat_messages"
       
    41 		android:layout_width="fill_parent" android:layout_height="0dip"
       
    42 		android:layout_weight="1" android:transcriptMode="normal"
       
    43 		android:stackFromBottom="true"
       
    44 		android:fadingEdge="none" android:padding="4dp"
       
    45 		android:fastScrollEnabled="true" android:smoothScrollbar="false"
       
    46 		android:focusable="true"/>
       
    47 	<LinearLayout android:layout_width="fill_parent"
       
    48 		android:layout_height="wrap_content" android:orientation="horizontal"
       
    49 		android:gravity="center_vertical"
       
    50 		android:padding="4dp">
       
    51 		<EditText android:id="@+id/chat_input" android:layout_width="0dip"
       
    52 			android:layout_height="fill_parent" android:layout_weight="1"
       
    53 			android:maxLines="5"
       
    54 			android:inputType="textShortMessage|textAutoCorrect|textMultiLine|textCapSentences"
       
    55 			android:imeOptions="actionSend|flagNoExtractUi" android:cursorVisible="true"
       
    56 			android:hint="@string/chat_input_default_value" />
       
    57 		<Button android:id="@+id/chat_send_message"
       
    58 			android:layout_width="wrap_content" android:layout_height="wrap_content"
       
    59 			android:text="@string/chat_send_message" />
       
    60 	</LinearLayout>
       
    61 </LinearLayout>