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

你好,onItemSelected方法返回的position有时候是错误的 #14

Open
YanxuLi opened this issue Jan 26, 2018 · 1 comment
Open

Comments

@YanxuLi
Copy link

YanxuLi commented Jan 26, 2018

你好,我是用了GalleryLayoutManager(GalleryLayoutManager.HORIZONTAL)在我的代码中,并且添加了setOnItemSelectedListener监听,但是在onItemSelected的回调中,position会错乱,总共有四个item,从刚进入展示第一个到逐个滑动到最后一个,position的变化是0-1-0-1-2-2-3-3,在滑动到最后一个item之前,有时会错乱,全部加载之后再滑动才正常

@BCsl
Copy link
Owner

BCsl commented Feb 6, 2018

@YanxuLi 我使用过程没遇到这样的问题,可以上传个 demo 看看吗?

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