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

能否增加一个是否轮询的参数 #5

Open
lookballs opened this issue Aug 9, 2019 · 8 comments
Open

能否增加一个是否轮询的参数 #5

lookballs opened this issue Aug 9, 2019 · 8 comments

Comments

@lookballs
Copy link

No description provided.

@lookballs
Copy link
Author

通过参数控制需不需要在最后一页的时候直接跳到第一页,类似于引导页效果

@AlpsDog
Copy link
Owner

AlpsDog commented Aug 13, 2019

意思是单次轮播?由第一页到最后一页就停止轮播?这样会永远停在最后一页!!意义不大啊

@lookballs
Copy link
Author

想想引导页效果,并不是轮播效果,只是左右滑动效果

@AlpsDog
Copy link
Owner

AlpsDog commented Aug 13, 2019

banner_auto_play这个属性就是控制是否自动轮播,设置为false,就不会轮播,或者调用stopAutoPlay()方法。你要是想轮播到某一页,停止轮播(或者开始轮播)用setBannerPagerChangedListener()设置翻页监听事件。然后判断是否为最后一页,在调用stopAutoPlay()方法即可!

@AlpsDog
Copy link
Owner

AlpsDog commented Aug 13, 2019

在最后一页停止,且向左滑动回不到第一页,目前没有这个控制。这和轮播图相违背

@lookballs
Copy link
Author

所以建议增加一个,目前用的banner有这个控制,但是对比你的感觉自定义性更强一点,想转换成你的

@lookballs
Copy link
Author

现在你的是有控制是否轮播的参数,所以增加一个是否左右循环切换的感觉更好呢

@lookballs
Copy link
Author

public void onPageScrollStateChanged(int state) 应该只要在state=1里面增加一个判断是不是在最后一页吧

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