title: How to implement infinite scroll in Gridlayout recylcerview
body: <p>I need help with the onscroll method...So Iwe tried a couple of things I found on stackoverflow but most of them work for linearlayout etc. Would be mighty helpful if you could point me in the right direction...</p>
  
  <p>Im using the instagram api to load pictures. it sends 20 pictures at a time so i need to load more as i get to the bottom of the page</p>
  
  <pre><code>    @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          mRecyclerView = (RecyclerView) findViewById(R.id.recyclerView);
          mRecyclerView.setLayoutManager(new GridLayoutManager(this, 2));
          //configViews();
  //        mLayoutManager = new GridLayoutManager(this, 2);
  //        mRecyclerView.setLayoutManager(mLayoutManager);
          mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {
  
  
              @Override
              public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
                  super.onScrolled(recyclerView, dx, dy);
  
  
  
              }
          });
  
  ....
  }
  </code></pre>