title: Android RecyclerView scroll to programmatically not working
body: <p>I am trying to programmatically scroll to a position in my <code>RecyclerView</code>, this is what I've tried until now nothing worked in my case:</p>
  
  <pre><code>        musicList.getLayoutManager().smoothScrollToPosition(musicList, null, position);
  
          musicList.scrollToPosition(position);
  
          mLayoutManager.scrollToPosition(position);
  
          musicList.getLayoutManager().scrollToPosition(position);
  </code></pre>
  
  <p>Is there something I missed?</p>
  
  <p>I have a <code>LinearLayoutManager mLayoutManager;</code> defined and set it to <code>RecyclerView</code> as this:</p>
  
  <pre><code>    mLayoutManager = new LinearLayoutManager(this);
      musicList.setLayoutManager(mLayoutManager);
  
  RecyclerView XML:
  
  &lt;android.support.v7.widget.RecyclerView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:id="@+id/musicList"
                  android:scrollbars="vertical"
                  android:scrollbarThumbVertical="@drawable/custom_scrollbar_vertical"/&gt;
  </code></pre>