title: Android: Cannot resolve method 'findFirstVisibleItemPosition()'?
body: <p>I'm trying to write a code for endless scroll on a recycler view. This is the snippet that gives me a compiler error:</p>
  
  <pre><code>@Override
              public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
  
                  visibleItemCount = mLayoutManager.getChildCount();
                  totalItemCount = mLayoutManager.getItemCount();
                  pastVisiblesItems = mLayoutManager.findFirstVisibleItemPosition();
  
                  if ( (visibleItemCount+pastVisiblesItems) &gt;= totalItemCount) {
                      Log.v("...", "Last Item Wow !");
                  }
  </code></pre>
  
  <p>And the declaration I've written before is:</p>
  
  <pre><code>mLayoutManager = new LinearLayoutManager(this);
  </code></pre>
  
  <p>And mLayoutManager is an object of class RecyclerView.LayoutManager</p>