Hi, I am trying to make a stacked layout with a fixed header, expandable body and fixed footer. I am very close however the body section with the webview displays behind the footer rather than between the header and footer. TIA
Jim
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/header"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:id="@+id/header"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/icon" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Karen" />
</LinearLayout>
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_below="@id/header"
>
<WebView
android:id="@+id/webview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#000000"
/>
<LinearLayout
android:id="@+id/footer"
android:layout_width='fill_parent'
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
android:background="#000000"
>
<EditText
android:id="@+id/inputText"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:text="Is on the bottom"
android:layout_weight="1"
android:textSize="15sp"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:textSize="15sp"
android:text="send" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>