| <?xml version="1.0" encoding="utf-8"?> |
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" > |
| |
| <ListView |
| android:id="@+id/message_list" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_above="@+id/form" |
| android:stackFromBottom="true" |
| android:transcriptMode="alwaysScroll" |
| android:background="@color/sfl_dark_blue" |
| android:layout_alignParentTop="true" > |
| </ListView> |
| |
| <LinearLayout |
| android:id="@+id/form" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_alignParentBottom="true" |
| android:background="@color/darker_gray" |
| android:weightSum="4" > |
| |
| <EditText |
| android:id="@+id/send_im_edittext" |
| android:layout_width="0dp" |
| android:layout_weight="3" |
| android:layout_height="wrap_content" |
| android:imeOptions="actionSend" |
| android:ems="10" |
| android:inputType="textCapSentences|textImeMultiLine" /> |
| |
| <Button |
| android:id="@+id/send_im_button" |
| android:layout_width="0dp" |
| android:layout_weight="1" |
| android:layout_height="wrap_content" |
| android:text="Send" |
| android:background="@drawable/item_generic_selector"/> |
| </LinearLayout> |
| |
| </RelativeLayout> |