title: Endless Scrolling RecyclerView is not working when items in list are minimum then screen size
body: <p>I have successfully implemented the Endless Scrolling using Recycler view. I am using <a href="https://github.com/codepath/android_guides/wiki/Endless-Scrolling-with-AdapterViews-and-RecyclerView" rel="noreferrer">this</a> code and this works perfectly but except with the following case </p>
  
  <p><strong>Case 1:</strong>   When the list has 2 items which are lesser then the screen size so its looks like the OnLoadMore calls again as it finds itself arriving to the end of the list </p>
  
  <p><strong>What I am doing:</strong>  I am getting the list from 1 fragment and then send this list to the other fragment and in that fragment there is a RecyclerView with the onScroll listner here it is as follows : </p>
  
  <pre><code>recyclerView.addOnScrollListener(new EndlessRecyclerOnScrollListener(mLayoutManager) {
          @Override
          public void onLoadMore(int page, int totalItemsCount) {
              // do something...
  
                  currentVisiblePosition = ((LinearLayoutManager) recyclerView.getLayoutManager()).findFirstCompletelyVisibleItemPosition();
                  pageNumber = pageNumber + 1;
                  CallingMyApi();
  
          }
      });
  </code></pre>
  
  <p><strong>Confusions:</strong> </p>
  
  <ul>
  <li>My RecyclerView add on scroll listener run first time when the fragments gets initialized. where as there is no scrolling performed. </li>
  <li>if there are lesser items let say 2 it runs always on fragment initiallized , in case of many items OnLoadMore methos does not runs. </li>
  </ul>
  
  <p>So i can guess that it is problem due to the less items in the list view How to control that please help me ?? </p>
  
  <p><strong>Update 1:  My Fragment Code</strong></p>
  
  <pre><code>@Override
  public void onViewCreated(View view, Bundle savedInstanceState) {
      super.onViewCreated(view, savedInstanceState);
  
      mAdapter = new EnrollmentSearchAdapter(getActivity(), parentList);
  
      rvSearchEnrollments.addOnScrollListener(new EndlessRecyclerOnScrollListener(mLayoutManager) {
          @Override
          public void onLoadMore(int page, int totalItemsCount) {
              // do something...
  
              if(parentList!=null &amp;&amp; parentList.size()&gt;3) { // just checking my own that 3 items should not be minimum to screen size , where as here it should be more flexible solution 
                  currentVisiblePosition = ((LinearLayoutManager) rvSearchEnrollments.getLayoutManager()).findFirstCompletelyVisibleItemPosition();
                  pageNumber = pageNumber + 1;
                  SearchSundaySchoolParentsCouples searchSundaySchoolParentsCouples = new SearchSundaySchoolParentsCouples(keyword, 20, pageNumber, getActivity());
                  searchSundaySchoolParentsCouples.execute();
              }
          }
      });
  
      rvSearchEnrollments.addItemDecoration(new SimpleDividerItemDecoration(getActivity()));
  
      rvSearchEnrollments.setAdapter(mAdapter);
  
  
  }
  </code></pre>