Set default page for ViewPager in Android
Have you tried using the setCurrentItem
method?
The accepted solution is fine, but it's important to call this method after setting up the adapter.
viewPager.setAdapter(adapterViewPager);
viewPager.setCurrentItem(1);