onPageSelected isn't triggered when calling setCurrentItem(0)

后端 未结 10 1708
梦如初夏
梦如初夏 2020-12-22 20:13

I have an Activity with a ViewPager which displays a bunch of pictures. When it starts the ViewPager\'s position is set based on what the user selected in a previous Activit

10条回答
  •  囚心锁ツ
    2020-12-22 20:25

    if you don't care screen animotion try

    pager.setCurrentItem(1);
    pager.setCurrentItem(0);
    

提交回复
热议问题