I am using PagerSlidingTab
Library for ViewPager
. And I want to change Fragment while scrolling of tabs. It is working fine. Check out my code.
please use this example..its very easy.i already implement that.
reference link
hope its useful to you.its best example of pager-sliding-tabstrip.
Use
framelayout compulsory:
FrameLayout fl = new FrameLayout(getActivity());
fl.addView(urFragementView);
and then set your fragement view in this framelayout.