I want to make my viewPager support Rtl, and set the current item on the last fragment, but when I write this code in my MainActivity.java, I don\'t kn
viewPager
MainActivity.java
becuse i use :
setCurrentItem(viewPagerAdapter.getCount());
before the setting the adapter it's not working and i should write this code after the setting the adpter , thanks to Kevin Chris and K Neeraj Lal .