Text Editor keyboard overlaps with the recyclerview list
<p>The layout has a recyclerview and a text editor at the bottom of the view. When I click the editor, the keyboard popup and overlaps with the recycerview. I want the recyclerview to be resized when the keyboard is brought up. In my Manifest file I have :</p>

<pre><code>   &lt;activity android:name=".CommentActivity" 
                           android:label="yourtime"
                           android:windowSoftInputMode="adjustResize"&gt;
                          &lt;/activity&gt;
</code></pre>

<p>My layout looks like this :</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"&gt;
&lt;android.support.v7.widget.RecyclerView
    android:id="@+id/rv"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" /&gt;
&lt;LinearLayout
    android:orientation="horizontal"
    android:minWidth="25px"
    android:minHeight="25px"
    android:id="@+id/linearLayout1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:weightSum="100"
    android:layout_alignParentBottom="true"&gt;
    &lt;EditText
        android:inputType="textMultiLine"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="85"
        android:id="@+id/commenteditor"
        android:hint="Write a comment" /&gt;
    &lt;ImageButton
        android:src="@drawable/arrow"
        android:layout_width="0dp"
        android:layout_height="match_parent"
        android:layout_weight="15"
        android:id="@+id/send"
        android:background="#ffff" /&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p></p>

<p>How do I make the list scroll up or get resized when the keyboard comes up? I have tried encapsulate the recyclerview inside scrollview but that didn't work.</p>

<p>This is what it looks like:</p>

<p><a href="https://i.stack.imgur.com/N5eA1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N5eA1.png" alt="enter image description here"></a></p>

<p>I want it to look like this:</p>

<p><a href="https://i.stack.imgur.com/YmOqm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YmOqm.png" alt="enter image description here"></a></p>

<p>What should I do?</p>