我正在尝试使用:
https://github.com/johannilsson/android-pulltorefresh
在ActionBarSherlock 4中,我陷入了MainActivity类扩展SherlockActivity而Pull-to-Refresh库扩展ListActivity的部分。
有人知道我能做什么吗?
我还看到了另一个老帖子:Usage of both EasyTracker and ActionBarSherlock on Android
杰克在那里说,“你可以创建自己的基础活动,这些活动从你想要的任何类扩展”。
我如何在我的ListActivity上做到这一点?
谢谢你,小丁。
发布于 2013-04-15 04:48:07
ActionBarSherlock还包含一个SherlockListActivity类,它提供与ListActivity相同的功能。需要注意的是,SherlockListActivity不会扩展 FragmentActivity,因此您将无法在该活动中使用Fragments,如this question中所述。
如果您想使用Fragments、ActionBarSherlock和一个帮助类来使用ListView,我建议您使用SherlockActivity和一个扩展SherlockListFragment的Fragment。
https://stackoverflow.com/questions/16003636
复制相似问题