title: android making layout scrollable when soft keyboard open, but not shifting it upwards
body: <p>This is my screen, with one button hidden behind the keyboard.</p>
  
  <p><strong>I want exactly like this, but scrollable. -</strong> </p>
  
  <p><a href="https://i.stack.imgur.com/ULYYU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ULYYU.png" alt="keyboard open with one button hidden behind"></a></p>
  
  <p>Whenever, the keyboard gets opened, I want to make look it the same as in image. But, instead to make it scrollable, so that the user can scroll to view the bottom part of the screen (including button), even when the keyboard is open.</p>
  
  <p>I tried -</p>
  
  <pre><code>android:windowSoftInputMode="adjustResize"
  </code></pre>
  
  <p>but, this shifts the bottom part upwards, whenever keyboard is opened.</p>
  
  <p>as in this image - </p>
  
  <p><strong><em>I don't want this</em></strong> - (shifting of <code>Create Account</code> button upwards, when keypad is opened)</p>
  
  <p><a href="https://i.stack.imgur.com/3Dhte.png" rel="noreferrer"><img src="https://i.stack.imgur.com/3Dhte.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p><strong>CREATE ACCOUNT</strong> button must be visible after scrolling.</p>
  </blockquote>
  
  <p>Here is the layout - </p>
  
  <pre><code>&lt;ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  
      android:layout_width="match_parent"
      android:layout_height="match_parent"
  
      android:id="@+id/root_layout"
      android:fillViewport="true"
  
      &gt;
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"
  
          android:weightSum="10"
  
          &gt;
          &lt;LinearLayout  android:layout_width="match_parent"
              android:layout_height="0dp"
              android:layout_weight="9"
              android:orientation="vertical"
              android:gravity="center_vertical|center_horizontal"
              android:paddingLeft="@dimen/activity_horizontal_margin"
              android:paddingRight="@dimen/activity_horizontal_margin"
              android:paddingTop="@dimen/activity_vertical_margin"
              android:paddingBottom="@dimen/activity_vertical_margin"&gt;
  
              &lt;LinearLayout
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_gravity="center_vertical"
                  android:orientation="vertical"&gt;
  
  
                  &lt;EditText
                      android:id="@+id/et_username_or_email"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:hint="@string/et_hint_username_or_email"
                      android:inputType="textEmailAddress"
                      android:singleLine="true"
                      /&gt;
                  &lt;EditText
                      android:id="@+id/et_pswd"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:hint="@string/et_hint_password"
                      android:password="true"
                      android:singleLine="true"
                      /&gt;
  
                  &lt;Button
                      android:id="@+id/btn_sign_in"
                      android:layout_marginTop="10dp"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="@string/btn_sign_in"
                      android:background="@color/lighter_orange"
                      android:textColor="@android:color/white"/&gt;
  
                  &lt;TextView
                      android:layout_marginTop="10dp"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="@string/or"
                      android:gravity="center_horizontal"
                      android:textColor="@android:color/black"/&gt;
  
  
                  &lt;Button
                      android:id="@+id/btn_take_a_peek"
                      android:layout_marginTop="10dp"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="@string/btn_take_a_peek"
                      android:textColor="@android:color/white"
                      android:background="@color/button_gray"/&gt;
  
                  &lt;TextView
                      android:layout_marginTop="15dp"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="@string/forgot_password"
                      android:gravity="center_horizontal"
                      android:textColor="@color/text_gray"/&gt;
              &lt;/LinearLayout&gt;
          &lt;/LinearLayout&gt;
          &lt;LinearLayout  android:layout_width="match_parent"
              android:layout_height="0dp"
              android:layout_weight="1"
              android:orientation="vertical"&gt;
  
  
              &lt;Button
                  android:id="@+id/btn_create_account"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:text="@string/btn_create_account"
                  android:background="@color/button_very_light_orange"
                  android:textColor="@android:color/white"/&gt;
  
  
          &lt;/LinearLayout&gt;
      &lt;/LinearLayout&gt;
  &lt;/ScrollView&gt;
  </code></pre>
  
  <p>Please help me to fix this up.</p>