title: RelativeLayout in ScrollView won't scroll
body: <p>I'm working on my first android app and I'm trying to get everything to scroll except for the ad. I put everything except for the ad into a RelativeLayout and put that into a ScrollView. When I click on an EditText and the keyboard comes up everything in the ScrollView gets shifted up but I can't scroll. </p>
  
  <p>Code is:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      xmlns:ads="http://schemas.android.com/apk/res-auto"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@drawable/background"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      android:paddingBottom="@dimen/activity_vertical_margin"
      tools:context="com.example.tipcalculator.app.MainActivity"&gt;
  
      &lt;com.google.android.gms.ads.AdView android:id="@+id/adView"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          ads:adUnitId="*adId*"
          ads:adSize="BANNER"
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true" /&gt;
  
      &lt;ScrollView
          android:layout_width="fill_parent"
          android:layout_height="fill_parent"
          android:fillViewport="true"
          android:layout_below="@+id/adView"&gt;
  
      &lt;RelativeLayout
          android:layout_width="fill_parent"
          android:layout_height="match_parent"
          android:layout_alignParentRight="true"
          android:layout_alignParentEnd="true"
          android:layout_alignParentTop="true"&gt;
  
      &lt;EditText
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:inputType="number|numberDecimal"
          android:ems="10"
          android:id="@+id/tipTxt"
          android:editable="true"
          android:clickable="true"
          android:hint="Other"
          android:layout_alignBottom="@+id/tipOthr"
          android:layout_toRightOf="@+id/tipOthr"
          android:enabled="false" /&gt;
  
      &lt;EditText
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:inputType="number|numberDecimal"
          android:ems="10"
          android:id="@+id/priceTxt"
          android:editable="true"
          android:clickable="true"
          android:hint="Price"
          android:enabled="true"
          android:layout_above="@+id/splitInTxt"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true" /&gt;
  
      &lt;EditText
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:ems="10"
          android:id="@+id/splitTxt"
          android:layout_marginBottom="22dp"
          android:editable="false"
          android:clickable="false"
          android:layout_alignParentBottom="true"
          android:layout_alignLeft="@+id/totalTxt"
          android:layout_alignStart="@+id/totalTxt"
          android:gravity="center_vertical"
          android:text="$0.00"
          android:textAlignment="center" /&gt;
  
      &lt;Button
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Calculate Tip"
          android:id="@+id/calcBtn"
          android:enabled="false"
          android:layout_marginBottom="29dp"
          android:clickable="true"
          android:gravity="center_vertical"
          android:layout_above="@+id/totalTxt"
          android:layout_centerHorizontal="true" /&gt;
  
      &lt;EditText
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:ems="10"
          android:id="@+id/totalTxt"
          android:editable="false"
          android:clickable="false"
          android:gravity="center_vertical"
          android:text="$0.00"
          android:textAlignment="center"
          android:layout_alignBottom="@+id/textView2"
          android:layout_alignLeft="@+id/ tipOutTxt "
          android:layout_alignStart="@+id/ tipOutTxt " /&gt;
  
      &lt;CheckBox
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="10%"
          android:id="@+id/tipTen"
          android:checked="false"
          android:clickable="true"
          android:enabled="true"
          android:layout_above="@+id/tipFtn"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true" /&gt;
  
      &lt;CheckBox
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="15%"
          android:id="@+id/tipFtn"
          android:checked="false"
          android:clickable="true"
          android:enabled="true"
          android:layout_above="@+id/tipTnty"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true" /&gt;
  
      &lt;CheckBox
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="20%"
          android:id="@+id/tipTnty"
          android:checked="false"
          android:clickable="true"
          android:enabled="true"
          android:layout_above="@+id/tipTxt"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true" /&gt;
  
      &lt;CheckBox
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/tipOthr"
          android:checked="false"
          android:layout_above="@+id/calcBtn"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true"
          android:layout_marginBottom="29dp"
          android:clickable="true"
          android:enabled="true" /&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:text="Total"
          android:id="@+id/textView2"
          android:layout_above="@+id/splitTxt"
          android:layout_alignRight="@+id/textView3"
          android:layout_alignEnd="@+id/textView3" /&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:text="Split"
          android:id="@+id/textView3"
          android:layout_alignBottom="@+id/splitTxt"
          android:layout_alignRight="@+id/textView5"
          android:layout_alignEnd="@+id/textView5" /&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:text="Split"
          android:id="@+id/textView"
          android:longClickable="false"
          android:singleLine="true"
          android:layout_above="@+id/tipTen"
          android:layout_toLeftOf="@+id/minusBtn" /&gt;
  
  
      &lt;EditText
          android:layout_width="76dp"
          android:layout_height="wrap_content"
          android:inputType="number"
          android:ems="10"
          android:id="@+id/splitInTxt"
          android:text="1"
          android:enabled="true"
          android:editable="true"
          android:gravity="center|right"
          android:layout_above="@+id/tipTen"
          android:layout_centerHorizontal="true" /&gt;
  
      &lt;Button
          style="?android:attr/buttonStyleSmall"
          android:layout_width="40dp"
          android:layout_height="40dp"
          android:text="+"
          android:id="@+id/plusBtn"
          android:enabled="true"
          android:clickable="true"
          android:layout_alignBottom="@+id/splitInTxt"
          android:layout_alignRight="@+id/tipTxt"
          android:layout_alignEnd="@+id/tipTxt" /&gt;
  
      &lt;Button
          style="?android:attr/buttonStyleSmall"
          android:layout_width="40dp"
          android:layout_height="40dp"
          android:text="-"
          android:id="@+id/minusBtn"
          android:clickable="true"
          android:enabled="true"
          android:layout_alignBottom="@+id/splitInTxt"
          android:layout_toLeftOf="@+id/splitInTxt" /&gt;
  
      &lt;EditText
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:ems="10"
          android:id="@+id/ tipOutTxt "
          android:editable="false"
          android:clickable="false"
          android:gravity="center_vertical"
          android:text="$0.00"
          android:textAlignment="center"
          android:layout_alignBottom="@+id/textView5"
          android:layout_centerHorizontal="true" /&gt;
  
      &lt;TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:text="Tip"
          android:id="@+id/textView5"
          android:layout_above="@+id/totalTxt"
          android:layout_toRightOf="@+id/tipOthr" /&gt;
      &lt;/RelativeLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>