SimpleSlider icon indicating copy to clipboard operation
SimpleSlider copied to clipboard

初始时,手势向左边滑动图片,无法向左边循环

Open ysemylord opened this issue 8 years ago • 2 comments

ysemylord avatar Feb 13 '17 02:02 ysemylord

添加如下方法并调用,皆可以了 /** * 解决当positoin为0使无法左滑的bug */ public void fixLeftCycle(){ int bigValue = Integer.MAX_VALUE/2; int allCount = infinitePagerAdapter.getRealCount(); simpleViewPager.setCurrentItem( (bigValue + bigValue % allCount)/ allCount); }

ysemylord avatar Feb 13 '17 06:02 ysemylord

很好的解决方法

cpacm avatar Feb 22 '17 06:02 cpacm