title: Android soft keyboard pushes toolbar & recyclerview up
body: <p>See following images attached. When I'm clicking on the edittext, my whole layout is pushing to the top. The result should be that the toolbar &amp; recyclerview should be fixed to the top.</p>
  
  <p><a href="https://i.stack.imgur.com/BdZX2.png" rel="nofollow noreferrer">Image 1</a></p>
  
  <p><a href="https://i.stack.imgur.com/CBbwO.png" rel="nofollow noreferrer">Image 2</a></p>
  
  <p>My layout is as shown below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;android.support.percent.PercentRelativeLayout 
     xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     tools:context=".PostDetailActivity"&gt;
  
  &lt;android.support.v7.widget.Toolbar
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:background="?attr/colorPrimary"
      android:minHeight="?attr/actionBarSize"
      android:fitsSystemWindows="true"
      android:layout_alignParentTop="true"
      android:theme="?attr/actionBarTheme" /&gt;
  
  &lt;android.support.v7.widget.RecyclerView
      android:id="@+id/recycler_comments"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_heightPercent="80%"
      android:layout_below="@+id/toolbar"
      android:paddingLeft="@dimen/activity_horizontal_margin"
      android:paddingRight="@dimen/activity_horizontal_margin"
      android:paddingTop="@dimen/activity_vertical_margin"
      tools:listitem="@layout/item_comment"&gt;
  
  &lt;/android.support.v7.widget.RecyclerView&gt;
  
  
      &lt;LinearLayout
          android:id="@+id/comment_form"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal"
          android:layout_below="@+id/recycler_comments"
          android:weightSum="1.0"
          android:paddingLeft="@dimen/activity_horizontal_margin"
          android:paddingRight="@dimen/activity_horizontal_margin"
          android:paddingTop="@dimen/activity_vertical_margin"&gt;
  
  
          &lt;EditText
              android:id="@+id/field_comment_text"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="0.8"
              android:focusableInTouchMode="true"
              android:hint="Write a comment..."
              android:imeOptions="actionDone"
              android:maxLines="1" /&gt;
  
          &lt;Button
              android:id="@+id/button_post_comment"
              style="@style/Base.Widget.AppCompat.Button.Borderless"
              android:layout_width="0dp"
              android:layout_height="wrap_content"
              android:layout_weight="0.2"
              android:text="Post" /&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>
  
  <p>My manifest.xml file:</p>
  
  <pre><code>android:windowSoftInputMode="stateAlwaysHidden|adjustPan"
  </code></pre>
  
  <p>I tried already tried "adjustResize" but the problem is that my linearlayout at the bottom is hiding under the keyboard.</p>
  
  <p>So what should I do?</p>