title: Resize scrollview only in android
body: <p>I have an android layout made like this:</p>
  
  <pre><code>--------------
  |   IMAGE1   | 
  --------------
  | SCROLLVIEW |  
  --------------
  |   IMAGE2   |
  --------------
  </code></pre>
  
  <p>When the keyboard pops up to input text in the scrollview's edittext, it resizes the whole application. Is there any way to keep IMAGE2 at the bottom of the screen?</p>
  
  <p>The layout of the application:</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:paddingBottom="0dp"
      android:paddingLeft="0dp"
      android:paddingRight="0dp"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:context=".SignupActivity" &gt;
  
          &lt;ImageView
              android:id="@+id/Logo"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentTop="true"
              android:layout_centerHorizontal="true"
              android:layout_marginTop="26dp"
              android:src="@drawable/logo_1" /&gt;
  
          &lt;ImageView
              android:id="@+id/imageView1"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:layout_alignParentLeft="true"
              android:layout_alignParentRight="true"
              android:scaleType="centerCrop"
              android:src="@drawable/wave_2" /&gt;
  
          &lt;ScrollView
              android:id="@+id/scrollView1"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              android:layout_alignParentBottom="true"
              android:layout_alignParentLeft="true"
              android:layout_below="@+id/Logo" &gt;
  
              &lt;LinearLayout
                  android:layout_width="fill_parent"
                  android:layout_height="286dp"
                  android:fadingEdge="none"
                  android:orientation="vertical"
                  android:paddingBottom="30dp" &gt;
  
                  &lt;EditText
                      android:id="@+id/editName"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:ems="10"
                      android:hint="@string/name" /&gt;
  
                  &lt;EditText
                      android:id="@+id/editSurname"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:ems="10"
                      android:hint="@string/surname" /&gt;
  
                  &lt;EditText
                      android:id="@+id/editCompany"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:ems="10"
                      android:hint="@string/company" /&gt;
  
                  &lt;Space
                      android:layout_width="match_parent"
                      android:layout_height="20dp" /&gt;
  
                  &lt;EditText
                      android:id="@+id/editUsername"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:ems="10"
                      android:hint="@string/username" /&gt;
  
                  &lt;EditText
                      android:id="@+id/editPassword"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:ems="10"
                      android:hint="@string/password"
                      android:inputType="textPassword" /&gt;
  
                  &lt;EditText
                      android:id="@+id/editMail"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:ems="10"
                      android:hint="@string/mail"
                      android:inputType="textEmailAddress" /&gt;
  
                  &lt;Space
                      android:layout_width="match_parent"
                      android:layout_height="20dp" /&gt;
  
                  &lt;EditText
                      android:id="@+id/editAddress"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:ems="10"
                      android:hint="@string/address" /&gt;
  
                  &lt;EditText
                      android:id="@+id/editZipCode"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:ems="10"
                      android:hint="@string/zipcode" /&gt;
  
                  &lt;EditText
                      android:id="@+id/editCity"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:ems="10"
                      android:hint="@string/city" /&gt;
  
                  &lt;EditText
                      android:id="@+id/editCountry"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:ems="10"
                      android:hint="@string/country" /&gt;
  
                  &lt;EditText
                      android:id="@+id/editPhone1"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:ems="10"
                      android:hint="@string/phone" /&gt;
  
                  &lt;EditText
                      android:id="@+id/editPhone2"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:layout_gravity="center_horizontal"
                      android:ems="10"
                      android:hint="@string/mobilephone" /&gt;
  
                  &lt;Space
                      android:layout_width="match_parent"
                      android:layout_height="20dp" /&gt;
  
                  &lt;Button
                      android:id="@+id/acceptButton"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:onClick="signup"
                      android:layout_gravity="center_horizontal"
                      android:text="@string/register" /&gt;
  
              &lt;/LinearLayout&gt;
          &lt;/ScrollView&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Edit:</p>
  
  <p>This is how actually the layout is. I want to keep the green wave image at the end of the page (under the keyboard) while still resizing the ScrollView to make it usable.</p>
  
  <p><a href="http://i.stack.imgur.com/ji1FB.png" rel="nofollow">http://i.stack.imgur.com/ji1FB.png</a>
  <a href="http://i.stack.imgur.com/D4jcX.png" rel="nofollow">http://i.stack.imgur.com/D4jcX.png</a></p>