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

ViewPagerLayoutManager: 快速滑到顶部第0个Item位置,onPageSelected()方法不会回调! #61

Open
eekidu opened this issue Dec 12, 2019 · 2 comments

Comments

@eekidu
Copy link

eekidu commented Dec 12, 2019

如题!

@Carlxx
Copy link

Carlxx commented Mar 5, 2020

如题!

@zhangyunhong
Copy link

我觉得可以判断 在回调的时候判断一下是否是第0个位置 或者你在if (mOnViewPagerListener != null && getChildCount() <= 2) {
mOnViewPagerListener.onPageSelected(positionIdle, positionIdle == getItemCount() - 1);
}
有时候getChildCount() 不是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

3 participants