ViewPagerIndicator icon indicating copy to clipboard operation
ViewPagerIndicator copied to clipboard

单个banner图仍是无限循环(手势滑动)

Open zhangdongdi opened this issue 6 years ago • 1 comments
trafficstars

IndicatorViewPager中 setLoop(boolean loop)非public ,不能设置loop为false,但是getCount方法中作者这么写: if (IndicatorViewPagerAdapter.this.getCount() == 0) { return 0; } if (loop) { return Integer.MAX_VALUE - 100; } return IndicatorViewPagerAdapter.this.getCount(); 所以单张图片时手势滑动仍是无限循环,然而需求经常要求单张图是不能滑动切换的

zhangdongdi avatar May 09 '19 05:05 zhangdongdi

这个我可以添加个设置,不过这个功能要明天周六提交

LuckyJayce avatar May 10 '19 02:05 LuckyJayce