-
Notifications
You must be signed in to change notification settings - Fork 16
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
Comments
通过参数控制需不需要在最后一页的时候直接跳到第一页,类似于引导页效果 |
意思是单次轮播?由第一页到最后一页就停止轮播?这样会永远停在最后一页!!意义不大啊 |
想想引导页效果,并不是轮播效果,只是左右滑动效果 |
banner_auto_play这个属性就是控制是否自动轮播,设置为false,就不会轮播,或者调用stopAutoPlay()方法。你要是想轮播到某一页,停止轮播(或者开始轮播)用setBannerPagerChangedListener()设置翻页监听事件。然后判断是否为最后一页,在调用stopAutoPlay()方法即可! |
在最后一页停止,且向左滑动回不到第一页,目前没有这个控制。这和轮播图相违背 |
所以建议增加一个,目前用的banner有这个控制,但是对比你的感觉自定义性更强一点,想转换成你的 |
现在你的是有控制是否轮播的参数,所以增加一个是否左右循环切换的感觉更好呢 |
public void onPageScrollStateChanged(int state) 应该只要在state=1里面增加一个判断是不是在最后一页吧 |
No description provided.
The text was updated successfully, but these errors were encountered: