title: Find first completely visible element in recyclerview
body: <p>I have a layout in which it has parallax effect. So this are the elements in it -</p>
  
  <ol>
  <li><code>AppBarLayout</code></li>
  <li><code>CollapsingToolbarLayout</code> inside <code>AppBarLayout</code></li>
  <li><code>Toolbar</code> inside <code>CollapsingToolbarLayout</code></li>
  <li><code>RecyclerView</code></li>
  </ol>
  
  <p>All this views are within <code>CoordinatorLayout</code>. Now I require to find out what is the first completely visible item of <code>RecyclerView</code>. Normally I used following logic to get it -</p>
  
  <pre><code>int firstVisibleItem = ((LinearLayoutManager) recyclerView.getLayoutManager()).findFirstCompletelyVisibleItemPosition();
  </code></pre>
  
  <p>But here I am getting lots of 1 when even 0th  position is not completely visible.</p>