how to reverse the direction of viewPager to left to right order?

后端 未结 3 1966
孤城傲影
孤城傲影 2020-12-03 23:17

I have viewPager with several views. the default behavior of viewPager is that the first item is displayed first, then swiping right to left displays the second view right t

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-03 23:44

    You can simply use setCurrentItem() to navigate to the last page in the ViewPager when it's attached to the View.

提交回复
热议问题