RecylcerView scrolls to Top on Item Removed
<p>I use the following Code in my RecyclerView.Adapter to remove an Item. If the current scroll-position is at the top, everything works fine.</p>

<p>If the scroll-position is somewhere in the middle of the List, the List automatically scrolls to the Top of the View.</p>

<p>How to avoid this behaviour?</p>

<pre><code>public class MyAdapter extends RecyclerView.Adapter {

...

    public void removeItem(int pos){
        mDataset.remove(pos); //List with Items
        notifyItemRemoved(pos);
        notifyItemRangeChanged(pos,mDataset.size());
    }
}
</code></pre>

<hr>

<pre><code>    &lt;FrameLayout
        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"&gt;
    &lt;LinearLayout
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="match_parent"&gt;


            &lt;android.support.v7.widget.RecyclerView
                android:id="@+id/my_recycler_view"
                android:scrollbars="vertical"
                android:layout_width="match_parent"
                android:layout_height="match_parent" /&gt;

    &lt;/LinearLayout&gt;
...
    &lt;/FrameLayout&gt;
</code></pre>