title: Android Layout (Fixed Header + Scrolling section + Fixed Footer)
body: <p>I am trying to create Android Layout with fixed Header, middle Scrolling section and fixed Footer. 
  I've tried everything I've found on StackOverlow and on the net, but nothing seems to work for me. I've so far spent good 5-6 hours now, trying linear and other relative layouts, but it's not working...</p>
  
  <p>Code below is the closest I've got.
  It has a working fixed Header and middle scrolling section, but I can't get the fixed footer working...</p>
  
  <p>As soon as I fill a lot of content to <strong>webView2</strong> in the middle scrolling section, footer part actually completely disappears...</p>
  
  <p>Any suggestions or code changes would be more than appreciated.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical"&gt;
  
  &lt;!-- THIS IS THE TOP FIXED SECTION - TEXTBOX AND BUTTONS BELOW  --&gt;
  &lt;LinearLayout
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:background="#000000"
      android:orientation="vertical"&gt;
      &lt;TextView
          android:id="@+id/URLtoAdFree"
          android:layout_width="fill_parent"
          android:layout_height="29dp"
          android:layout_gravity="left"
          android:background="#CACCCC"
          android:gravity="center"
          android:padding="1dip"
          android:text="Expires Soon"
          android:textColor="#C41B32"
          android:textSize="15px"
          android:textStyle="bold"
          android:visibility="gone"&gt;&lt;/TextView&gt;
      &lt;TableRow
          android:id="@+id/tableRow13"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
          &lt;EditText
              android:id="@+id/devicea"
              android:layout_width="fill_parent"
              android:layout_height="80px"
              android:layout_margin="2dp"
              android:layout_weight="1"
              android:gravity="center"
              android:padding="1dip"
              android:singleLine="false"
              android:textColor="#333333"
              android:textSize="13dp"
              android:textStyle="bold"&gt;
              &lt;requestFocus /&gt;
          &lt;/EditText&gt;
          &lt;Button
              android:id="@+id/btn2"
              android:layout_marginBottom="0dp"
              style="@style/ButtonText"
              android:layout_width="82px"
              android:layout_height="82px"
              android:layout_gravity="center_horizontal"
              android:background="@drawable/setting_icon_82_82"&gt;&lt;/Button&gt;
      &lt;/TableRow&gt;
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:background="#000000"
          android:orientation="vertical"&gt;
          &lt;TableRow
              android:id="@+id/tableRow101"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:gravity="center"&gt;
              &lt;Button
                  android:id="@+id/speak"
                  style="@style/ButtonText"
                  android:layout_width="120px"
                  android:layout_height="120px"
                  android:layout_gravity="center_horizontal"
                  android:background="@drawable/buttonup"&gt;&lt;/Button&gt;
              &lt;Button
                  android:id="@+id/shh"
                  style="@style/ButtonText"
                  android:layout_width="120px"
                  android:layout_height="120px"
                  android:layout_gravity="center_horizontal"
                  android:background="@drawable/shh"
                  android:visibility="gone"&gt;&lt;/Button&gt;
          &lt;/TableRow&gt;
      &lt;/LinearLayout&gt;
  
      &lt;!-- THIS IS THE MIDDLE SCROLLING SECTION  --&gt;
      &lt;ScrollView
          android:layout_width="fill_parent"
          android:layout_height="match_parent"
          android:fillViewport="true"&gt;
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:background="#000000"
              android:orientation="vertical"&gt;
              &lt;LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:background="#000000"
                  android:orientation="vertical"&gt;
                  &lt;WebView
                      android:id="@+id/webView2"
                      android:layout_width="fill_parent"
                      android:layout_height="match_parent"
                      android:layout_weight="0"
                      android:background="#000000"&gt;&lt;/WebView&gt;
              &lt;/LinearLayout&gt;
              &lt;LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="wrap_content"
                  android:background="#000000"
                  android:orientation="vertical"&gt;
                  &lt;EditText
                      android:id="@+id/deviceb"
                      android:layout_width="fill_parent"
                      android:layout_height="230dp"
                      android:layout_margin="2dp"
                      android:layout_weight="1"
                      android:background="#000000"
                      android:gravity="center"
                      android:orientation="vertical"
                      android:padding="1dip"
                      android:singleLine="false"
                      android:textColor="#ffffff"
                      android:textSize="12dp"&gt;&lt;/EditText&gt;
              &lt;/LinearLayout&gt;
              &lt;LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="0dip"
                  android:layout_weight="1"
                  android:background="#000000"
                  android:orientation="vertical"&gt;&lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  
      &lt;!-- THIS IS THE BOTTOM FIXED SECTION  --&gt;
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:background="#000000"
          android:orientation="vertical"&gt;
          &lt;LinearLayout
              android:layout_width="fill_parent"
              android:id="@+id/linlay"
              android:layout_height="wrap_content"
              android:background="#000000"
              android:orientation="vertical"&gt;&lt;/LinearLayout&gt;
          &lt;TextView
              android:id="@+id/linebreak"
              android:layout_width="fill_parent"
              android:layout_height="1dp"
              android:layout_gravity="left"
              android:layout_margin="1dp"
              android:background="#a9aaaa"
              android:gravity="center"
              android:padding="1dip"
              android:text=""
              android:textColor="#606060"
              android:visibility="gone"
              android:textStyle="bold"&gt;&lt;/TextView&gt;
          &lt;TextView
              android:id="@+id/peopleaskingtextview"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="left"
              android:layout_weight="0"
              android:gravity="center"
              android:padding="1dip"
              android:text=""
              android:textColor="#36A4FF"
              android:visibility="gone"
              android:textSize="18px"&gt;&lt;/TextView&gt;
          &lt;TextView
              android:id="@+id/topstring8"
              android:layout_width="fill_parent"
              android:layout_height="1dp"
              android:layout_gravity="left"
              android:layout_margin="1dp"
              android:background="#a9aaaa"
              android:gravity="center"
              android:padding="1dip"
              android:text=""
              android:textColor="#606060"
              android:textSize="25px"
              android:textStyle="bold"&gt;&lt;/TextView&gt;
          &lt;TextView
              android:id="@+id/nstextview"
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              android:layout_gravity="left"
              android:layout_weight="0"
              android:gravity="center"
              android:padding="1dip"
              android:text="© Copyright Note"
              android:textColor="#cccccc"
              android:textSize="10dp"&gt;&lt;/TextView&gt;
      &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>