I\'m using a ViewPager together with a FragmentStatePagerAdapter to host three different fragments:
ViewPager
FragmentStatePagerAdapter
Hey I have answered this question here. Basically, you need to override
public Object instantiateItem(ViewGroup container, int position)
method of FragmentStatePagerAdapter.