title: Move toolbar up when keyboard shown
body: <p>In my app i have created a toolbar which sticks at the bottom of the screen now I want to move the toolbar above keyboard whenever the keyboard is show. I have tried the following ways but it didn't work</p>
  
  <p>Tried this:</p>
  
  <pre><code>android:windowSoftInputMode="stateVisible|adjustResize"
  </code></pre>
  
  <p>and this</p>
  
  <pre><code>getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
  </code></pre>
  
  <p>This is my layout file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent"         android:layout_height="fill_parent"&gt;
      &lt;EditText
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="133dp"
          android:gravity="center_vertical|top"
          android:textColor="@color/white"
          android:textSize="32sp"
          android:id="@+id/evmainText"
          android:inputType="textNoSuggestions"
          android:background="@android:color/transparent"
          android:layout_alignParentTop="true"
          android:layout_alignParentLeft="true"
          android:layout_alignParentStart="true" 
      /&gt;
      &lt;include layout="@layout/text_toolbar" /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>and here's the toolbar file </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v7.widget.Toolbar 
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/textFormatToolbar"
      android:layout_width="match_parent"
      android:layout_height="?attr/actionBarSize"
      android:layout_alignParentBottom="true"
      android:minHeight="?attr/actionBarSize"
      android:background="@drawable/toolbar_back_text"
  /&gt;
  </code></pre>
  
  <p>I want to displsy toolbar like this</p>
  
  <p><a href="https://i.stack.imgur.com/Zvq1J.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Zvq1J.jpg" alt="enter image description here"></a></p>