astuetz / PagerSlidingTabStrip

An interactive indicator to navigate between the different pages of a ViewPager
139 stars 44 forks source link

List loaded with delay swiping a fragment #44

Closed r4m closed 10 years ago

r4m commented 10 years ago

Hi, I'm using a FragmentStatePagerAdapter with PagerSlidingTabStrip to swipe between two SherlockLisFragment attached to a SimpleCursorAdapter with a ViewBinder(). When I swipe from a Fragment A to a Fragment B the list items do not appear until the swipe action is completed. I'm sure it is a problem related to some kind of action listener because this situation does not take place if I use the tabs to switch between the two fragments A and B. I'll try to fix it by myself but if someone has a suggestions for that it is appreciated!

r4m commented 10 years ago

It was my fault, I was calling new MyFragmentStatePagerAdapter(getChildFragmentManager(), this) instead of new MyFragmentStatePagerAdapter(getFragmentManager(), this).