title: Get RecyclerView child Views
body: <p>I am trying to get all the Views of RecyclerView items but it seems I can get only the first one. I am fetching the Views like this:</p>
  
  <pre><code>LinearLayoutManager manager = (LinearLayoutManager) rv.getLayoutManager();
  List&lt;View&gt; list = new ArrayList&lt;View&gt;();
  
  for(int i = 0; i &lt; manager.getItemCount(); i ++ ) {
    manager.scrollToPosition(i);
  
    View view = manager.findViewByPosition(i);
  
    if(view == null) {
      Log.i("Null Check", "Null: " + i);
    }
  
    list.add(view);
  }
  </code></pre>
  
  <p>The problem is that I fetch the first View in RecyclerView all the time. If I have 10 items, first item will be fetched and other 9 items will be logged as null. It's like <code>scrollToPosition(i)</code> is not working correctly. </p>
  
  <p>This is <code>scrollToPosition(i)</code> javadoc:</p>
  
  <blockquote>
    <p>Scroll the RecyclerView to make the position visible. RecyclerView
    will scroll the minimum amount that is necessary to make the target
    position visible. If you are looking for a similar behavior to
    android.widget.ListView.setSelection(int) or
    android.widget.ListView.setSelectionFromTop(int, int), use
    scrollToPositionWithOffset(int, int). <strong>Note that scroll position change
    will not be reflected until the next layout call.</strong></p>
  </blockquote>
  
  <p>I am worried because of this last sentence. What do you think how can I solve this?</p>