Closed Androguide closed 11 years ago
Ok, found my answer in cs3vigny's issue.
Overriding the isViewFromObject method with this worked for me too :
@Override public boolean isViewFromObject(View view, Object object) { if(object != null){ return ((Fragment)object).getView() == view; }else{ return false; } }
Thanks a lot for this great library, very useful :+1:
However, I'm running into problems when trying to implement it into my existing app which uses ActionBarSherlock. I changed my ViewPagers to JazzyViewPagers in both the layout and the java, I added ActionBarSherlock to JazzyViewPager (it would throw me a jar mismatch error otherwise). I also added the Object InstantiateItem() method as my viewpager contains more than 3 views
Anyway, when I launch my app, I swipe through the views, the effects are displayed correctly but as soon as I release the swipe I get a force close due to a NullPointer exception, see the following logcat : http://pastebin.com/raw.php?i=EpGC7Nem
For some reason, when I use the tabs to navigate the app doesn't crash but as soon as I release a swipe to change view it crashes...
I really don't see where the problem is, here is my ViewPager code : http://pastebin.com/j5Diwgmv, and here is my xml layout : http://pastebin.com/1t8E8zNV
Please point me to the right direction, this is driving me nuts