title: Set up pull to refresh for Staggered Grid View
body: <p>I am using Staggered Grid View-Master Library to develope the view like Pinterest and I'm quite successful in that. But now I want to implement Pull to refresh within my app. I have been using Library from <a href="https://github.com/johannilsson/android-pulltorefresh" rel="nofollow">johannilsson</a> but that doesnot includes pull to refresh for staggered Grid Views. The code I have been using is this :</p>
  
  <pre><code>      ((PullToRefreshListView)getListView()).setOnRefreshListener(new OnRefreshListener() {
              @Override
              public void onRefresh() {
                  // Do work to refresh the list here.
                  new GetDataTask().execute();
              }
          });
  
  
        adapter = new StaggeredAdapter(AllContestsList.this, R.id.imageView1, arrContest,false,false,false);
  
          gridView.setAdapter(adapter);
  
          adapter.notifyDataSetChanged();
  </code></pre>
  
  <p>Help would be appreciated , Thank you.</p>