Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhangdongdi opened this issue May 9, 2019 · 1 comment
Open

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

zhangdongdi opened this issue May 9, 2019 · 1 comment

Comments

@zhangdongdi
Copy link

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();
所以单张图片时手势滑动仍是无限循环,然而需求经常要求单张图是不能滑动切换的

@LuckyJayce
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants