title: Pull to refresh for GridView in Android
body: <p>First of all, I want to tell you guys I have read and succeed developing Pull to refresh using <a href="https://github.com/chrisbanes/Android-PullToRefresh/" rel="nofollow">Chris Banes library</a> and <a href="https://github.com/johannilsson/android-pulltorefresh" rel="nofollow">Johan Nilsson library</a> .</p>
  
  <p>Now I'm trying to go with Johan Nilsson library for GridView. He only implemented for ListView so I have to modify <a href="https://github.com/johannilsson/android-pulltorefresh/blob/master/pulltorefresh/src/com/markupartist/android/widget/PullToRefreshListView.java" rel="nofollow">PullToRefreshListView</a> JAVA file.</p>
  
  <p>There I have extends <code>GridView</code> instead of <code>ListView</code> (Line 24). Then it will give me a error on Line 109 by saying <strong>addHeaderView(mRefreshView);</strong> is not recognized and change it as <strong>addView()</strong> But <code>addView()</code> methods also give me run time errors.</p>
  
  <p>I am going with Johan Nilsson library, because it gives me the opportunity to add some more form widgets to my Activity and easily customize the design rather than the other library. </p>