title: Scroll RecyclerView Scroll to position always on top
body: <p>I'm using linear layout manager and <code>RecyclerView</code> with a <code>LinearLayout Manager</code> to populate some list of items. When I'm displaying the <code>recyclerview</code> for the first time and I use:</p>
  
  <pre><code>linearLayoutManager.scrollToPosition(desiredindex);
  </code></pre>
  
  <p>it scrolls to the top exactly where I want.</p>
  
  <p>Now here is the tricky part - When I'm scrolling to top of <code>recyclerview</code> (i.e. new items indices will be lower than the <code>desiredindex</code>) and I call:</p>
  
  <pre><code>linearLayoutManager.scrollToPosition(desiredindex);
  </code></pre>
  
  <p>It still works fine, but  when the <code>recyclerview</code> has been scrolled beyond the <code>desiredindex,</code> the <code>recycler view</code> scrolls such that the <code>desiredindex</code> item comes to the bottom rather than on top, but I want the tile to scroll to the top not the bottom.</p>