title: Fix toolbar at the top while pressing enter in EditText in a fragment
body: <p>There is a fragment with an EditText in it, and I want to show a toolbar fixed at the top in this fragment.</p>
  
  <p>I want this toolbar to show up at the top regardless of how many times I press enter on the EditText, but now it just scrolls up and disappears.</p>
  
  <p>How do I solve this?</p>
  
  <p>This is the layout file of the fragment:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &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:background="@android:color/white"
      tools:context=".MemoFragment"&gt;
  
      &lt;android.support.design.widget.CollapsingToolbarLayout
      android:layout_width="match_parent"
      android:layout_height="60dp"&gt;
  
      &lt;android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:app="http://schemas.android.com/apk/res-auto"
          android:id="@+id/memo_toolbar"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@android:color/white"
          app:layout_collapseMode="pin"&gt;
  
          &lt;Button
              android:id="@+id/btn_confirm"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:background="@drawable/button_shape"
              android:text="Confirm"
              android:textColor="@android:color/white"
              android:textSize="@dimen/text_size_medium"
              android:textStyle="bold" /&gt;
  
          &lt;TextView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content" /&gt;
  
      &lt;/android.support.v7.widget.Toolbar&gt;
  
  &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  
      &lt;EditText
          android:id="@+id/memo_edit_text"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginLeft="@dimen/spacing_medium"
          android:background="@drawable/text_shape"
          android:fontFamily="sans-serif"
          android:gravity="top" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I have tried many of solutions found on StackOverflow but couldn't solve it.
  Can anyone help me with this?
  Thanks.</p>