Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent" >
- <LinearLayout
- <!--Giving the Header a reference ID-->
- android:id="@+id/header"
- android:layout_width="fill_parent"
- android:layout_height="20dp"
- android:layout_alignParentTop="true"
- android:background="#000000" >
- <TextView
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:textSize="15sp"
- android:textColor="#ffffff"
- android:text="My header" />
- </LinearLayout>
- <ScrollView
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- <!--Here, we tell it to place the top edge of the ScrollView
- below the bottom edge of the header-->
- android:layout_below="@id/header"
- <!--Here, we tell it to place the bottom edge of the ScrollView
- above the top edge of the footer-->
- android:layout_above="@id/footer"
- android:layout_weight="1"
- android:gravity="bottom"
- android:background="#894545">
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content" />
- </ScrollView>
- <LinearLayout
- <!--Here, we give the footer a reference ID-->
- android:id="@+id/footer"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:padding="2dp"
- android:layout_alignParentBottom="true"
- android:isScrollContainer="true"
- android:background="@drawable/steel" >
- <EditText
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_weight="0.2"
- android:scrollbars="vertical"
- android:fadingEdge="vertical"
- android:maxHeight="40dp"
- android:textSize="15sp" />
- <Button
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_weight="0.8"
- android:layout_gravity="right"
- android:text="Send"
- android:textStyle="bold"
- android:textSize="15sp" />
- </LinearLayout>
- </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement