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="fill_parent" android:layout_height="fill_parent" |
3 android:layout_width="fill_parent" android:layout_height="fill_parent" |
4 android:orientation="vertical"> |
4 android:orientation="vertical"> |
5 <LinearLayout android:id="@+id/chat_header" |
5 <LinearLayout android:id="@+id/chat_header" |
6 android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" |
6 android:layout_width="fill_parent" android:layout_height="wrap_content" |
7 android:gravity="center_vertical" android:background="#222222" |
7 android:orientation="horizontal" android:gravity="center_vertical" |
8 android:padding="4px"> |
8 android:background="#222222" android:padding="4px"> |
9 <ImageView android:id="@+id/chat_contact_status_icon" |
9 <ImageView android:id="@+id/chat_contact_status_icon" |
10 android:adjustViewBounds="true" android:layout_width="wrap_content" |
10 android:adjustViewBounds="true" android:layout_width="wrap_content" |
11 android:layout_height="wrap_content" android:gravity="center_vertical" /> |
11 android:layout_height="wrap_content" android:gravity="center_vertical" /> |
12 <LinearLayout android:orientation="vertical" |
12 <LinearLayout android:orientation="vertical" |
13 android:layout_width="fill_parent" android:layout_height="wrap_content" |
13 android:layout_width="fill_parent" android:layout_height="wrap_content" |
23 </LinearLayout> |
23 </LinearLayout> |
24 </LinearLayout> |
24 </LinearLayout> |
25 <View android:layout_width="fill_parent" android:layout_height="2dp" |
25 <View android:layout_width="fill_parent" android:layout_height="2dp" |
26 android:fadingEdge="horizontal" android:background="#555555" /> |
26 android:fadingEdge="horizontal" android:background="#555555" /> |
27 <ListView android:id="@+id/chat_messages" |
27 <ListView android:id="@+id/chat_messages" |
28 android:layout_width="fill_parent" |
28 android:layout_width="fill_parent" android:layout_height="0px" |
29 android:layout_height="0px" android:layout_weight="1" |
29 android:layout_weight="1" android:transcriptMode="normal" |
30 android:transcriptMode="normal" android:fastScrollEnabled="true" |
30 android:fastScrollEnabled="true" android:smoothScrollbar="false" |
31 android:smoothScrollbar="false" android:layout_marginBottom="20sp" |
31 android:layout_marginBottom="20sp" android:padding="4px" /> |
32 android:padding="4px" /> |
32 <LinearLayout android:layout_width="fill_parent" |
33 <EditText android:id="@+id/chat_input" android:layout_width="fill_parent" |
33 android:layout_height="wrap_content" android:orientation="horizontal" |
34 android:layout_height="wrap_content" android:inputType="textShortMessage|textAutoComplete" |
34 android:background="#222222" android:padding="8px"> |
35 android:imeOptions="actionSend" android:cursorVisible="true" |
35 <EditText android:id="@+id/chat_input" android:layout_width="wrap_content" |
36 android:hint="@string/chat_input_default_value" /> |
36 android:layout_height="fill_parent" android:layout_weight="1" |
|
37 android:ellipsize="end" android:inputType="textAutoComplete|textAutoCorrect" |
|
38 android:imeOptions="actionSend" android:cursorVisible="true" |
|
39 android:hint="@string/chat_input_default_value" /> |
|
40 <Button android:id="@+id/chat_send_message" |
|
41 android:layout_width="wrap_content" android:layout_height="fill_parent" |
|
42 android:text="@string/chat_send_message" /> |
|
43 </LinearLayout> |
37 </LinearLayout> |
44 </LinearLayout> |