Pull to refresh for GridView in Android

First of all, I want to tell you guys I have read and succeed developing Pull to refresh using Chris Banes library and Johan Nilsson library .

Now I'm trying to go with Johan Nilsson library for GridView. He only implemented for ListView so I have to modify PullToRefreshListView JAVA file.

There I have extends GridView instead of ListView (Line 24). Then it will give me a error on Line 109 by saying addHeaderView(mRefreshView); is not recognized and change it as addView() But addView() methods also give me run time errors.

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.


This is what your looking for

Works for all AbsListView. I've implemented both ListView and GridView.

GridView doesn't support HeaderView. But Google implemented their own GridView, they use it only for internal purposes. This can solve your problem HeaderView

Need Your Help

Multiple NetStreams and performance

actionscript-3 flash flv netstream netconnection

I need to play multiple (66) synchronized .flv videos in flash. What I do:

Extract Google Analytics Campaign Cookie Information and Insert Into Inquiry Form Field. Is this possible?

javascript html google-analytics analytics tracking

I have been using Google Analytics for a while. For one of my customers we use campaign tracking extensively. And recently we started collecting Multi Channel Funnel analytics. The primary reason for