I created a ViewPager and everything is working fine, however I want to have a previous next button outside of ViewPager which can be used to navigate inside ViewPager. How can
As blessenm answered viewpager.setCurrentItem(int index) is the way to go.
viewpager.setCurrentItem(int index)