Reputation: 899
My app has three fragments with the home page shown at app launch. And I have two pages one on the 'left' and the other to the 'right'. So, you can think of my home/launch page being in the middle.
I am unable to accomplish this flow: "page 0 <-> page 1 (launch page) <-> page 2" since ViewPager
moves only in N, N+1 direction not N, N-1 and then back to N, N+1 direction. At this time, I am not necessarily interested in RTL or LTR implementations for I18N/L10N.
I tried using a negative position in getItem()
however, that didn't work as expected.
Upvotes: 0
Views: 35
Reputation: 5767
You can call viewPager.setCurrentItem(1)
to start on the second page.
Upvotes: 1