title: Can we lock top and bottom view in a layout while we are using scrollview
body: <p>I am implementing a data entry screen with few fields.In <strong>ScrollView</strong> for better view(Visibility) in small devices.
  In that activity i want to <strong>LOCK</strong> both <strong>Heading(textView1)</strong> and <strong>bottom Layout(myButtonsLayout)</strong>.I am able to lock conform button.But unable to lock heading.Please help me to solve my issue.</p>
  
  <p>Means i want to scroll my layout(ScrollView) without moving  Header and Footer</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" &gt;
  &lt;TextView
          android:id="@+id/textView1"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_gravity="center"
          android:background="@drawable/bluebutton"
          android:gravity="center"
          android:paddingTop="10dp"
          android:text="Default Details"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:textColor="@android:color/white"
          android:textSize="30dp"
          android:textStyle="bold" /&gt;
  
  &lt;ScrollView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_alignParentLeft="true"
      android:layout_alignParentTop="true" 
      android:background="#2E9AFE"
      android:layout_above="@+id/myButtonsLayout"&gt;
  
  
      &lt;LinearLayout
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical" &gt;
  
  
      &lt;TextView
          android:id="@+id/tvtv"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/textView1"
          android:paddingTop="10dp"
          android:text="Default recipient Mobile no:"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:textColor="@android:color/white"
          android:textStyle="bold" /&gt;
  
      &lt;EditText
          android:id="@+id/etDefMobNo"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp"
          android:layout_marginTop="10dp"
          android:ems="10"
          android:hint="Def mobile no"
          android:inputType="phone" &gt;
  
      &lt;/EditText&gt;
  
      &lt;TextView
          android:id="@+id/textView3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:paddingTop="10dp"
          android:text="Default SMS content:"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:textColor="@android:color/white"
          android:textStyle="bold" /&gt;
  
      &lt;EditText
          android:id="@+id/etDefMsg"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignParentLeft="true"
          android:layout_alignParentRight="true"
          android:layout_below="@+id/textView3"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp"
          android:layout_marginTop="10dp"
          android:ems="10"
          android:hint="Def Message content"
          android:inputType="textMultiLine"
          android:lines="6" /&gt;
  
      &lt;TextView
          android:id="@+id/textView4"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:paddingTop="10dp"
          android:text="Default recipient email id:"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:textColor="@android:color/white"
  
          android:textStyle="bold" /&gt;
  
      &lt;EditText
          android:id="@+id/etDefEmail"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_alignLeft="@+id/etDefMsg"
          android:layout_alignParentRight="true"
          android:layout_below="@+id/textView4"
          android:layout_marginBottom="10dp"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="10dp"
          android:layout_marginTop="10dp"
          android:ems="10"
          android:hint="Def Email"
          android:inputType="textEmailAddress" /&gt;
  &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
      &lt;LinearLayout 
      android:id="@+id/myButtonsLayout"
      android:layout_width="wrap_content"
      android:layout_height="100dp"
      android:layout_alignParentBottom="true"
      android:layout_alignParentLeft="true"
      android:layout_alignParentRight="true"
      android:background="#2E9AFE" &gt;
  
          &lt;Button
              android:id="@+id/bsave1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentLeft="true"
              android:layout_below="@+id/etDefEmail"
              android:layout_gravity="left|center"
              android:layout_marginBottom="10dp"
              android:layout_marginLeft="20dp"
              android:layout_marginRight="10dp"
              android:layout_weight="50"
              android:background="@drawable/blackbutton"
              android:text="Save"
              android:textColor="@android:color/white"
              android:textSize="24dp"
              android:textStyle="bold" /&gt;
  
      &lt;Button
          android:id="@+id/bReset"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_below="@+id/etDefEmail"
          android:layout_gravity="right|center"
          android:layout_marginBottom="10dp"
          android:layout_marginLeft="10dp"
          android:layout_marginRight="20dp"
          android:layout_toRightOf="@+id/textView3"
          android:layout_weight="50"
          android:background="@drawable/blackbutton"
          android:text="Reset"
          android:textColor="@android:color/white"
          android:textSize="24dp"
          android:textStyle="bold" /&gt;
  
  &lt;/LinearLayout&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>