首先,我想告诉大家,我已经阅读并成功开发Pull,使用Chris Banes library和Johan Nilsson library进行刷新。拉动以刷新Android中的GridView
现在我正试着和Johan Nilsson库一起去GridView。他只实现了ListView,所以我必须修改PullToRefreshListView JAVA文件。
那里我扩展GridView
而不是ListView
(24行)。然后它会通过说addHeaderView(mRefreshView)在第109行给我一个错误;不被识别并将其更改为addView()但addView()
方法也给我运行时错误。
我将与Johan Nilsson图书馆合作,因为它使我有机会在我的活动中添加更多表格小部件,并轻松定制设计而非其他图书馆。
你为什么不去[这个例子](https://github.com/chrisbanes/Android-PullToRefresh/blob/master/library/src/com/handmark/pulltorefresh/library/PullToRefreshGridView的.java)? – MKJParekh
@FasteKerinns是Chris Banes图书馆。不是吗。我已经在我的Q中提到过了。单个文件依赖于另外4个JAVA文件,另一个问题是,很难将其他表单小部件添加到Activity中。无论如何,感谢您的答复:-) – AnujAroshA
你找到解决方案我也面临同样的问题 –