Getting Parent ViewPager View from inside Fragment
From fragment, call getActivity() which will gives you the activity in which the fragment is hosted. Then call findViewById(ViewPagerId) to get the ViewPager. ViewPager vp=(ViewPager) getActivity().findViewById(ViewPagerId);