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

后端 未结 3 1972
孤城傲影
孤城傲影 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:49

    why don't you reverse the list of you view in view pager and use setCurrentItem(int) or setCurrentItem(int,boolean) and set the last one at the launch of the activity/fragment..

提交回复
热议问题