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

无限循环模式下,我想通过点击不断下一个应该怎么做 #227

Open
Zyk1416937694 opened this issue Jul 26, 2022 · 2 comments

Comments

@Zyk1416937694
Copy link

banner.setBannerCurrentItem(banner.getBannerCurrentItem() + 1, true);这样做的话,到了最后一个就不能往下了。
但是banner.setBannerCurrentItem(banner.getBannerCurrentItem() - 1, true);这样可以一直往左划,没有影响

@xiaohaibin
Copy link
Owner

根据自己的逻辑判断一下,到最后一个,就切换下标

@Zyk1416937694
Copy link
Author

根据自己的逻辑判断一下,到最后一个,就切换下标

我的确这么做了,但是切换到第一个的时候,他没有放大(本来选中的是比其他未选中的更大的),而是和其它Item一样是小的,继续点的时候会变大一下然后变小

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