Actionbar With Viewpager - Clicking Partially Visible Tab Crashes The App
I'm using a ViewPager to display 4 different fragments. I use the action bar to display the tabs for the navigation. It looks like that: My problem is that initially 3 of the tabs
Solution 1:
Start the Loader
in one of the callbacks(like onActivityCreated()
) that run after the onCreateView()
is called so you make sure that the Loader
returning the data very fast doesn't put you in a position where the view of the Fragment
is not yet created(the problem in your case).
Post a Comment for "Actionbar With Viewpager - Clicking Partially Visible Tab Crashes The App"