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

滚动过程中的positionOffset如何获取 #29

Open
jin123d opened this issue Nov 6, 2024 · 1 comment
Open

滚动过程中的positionOffset如何获取 #29

jin123d opened this issue Nov 6, 2024 · 1 comment

Comments

@jin123d
Copy link

jin123d commented Nov 6, 2024

看到你在另外一个issue中回复 滚动中不回调onPagerIndexSelected
那么如何获取滚动中的positionOffset呢,类似viewPager/ViewPager2中的都滚动监听。

void onPageScrolled(int position, float positionOffset, @Px int positionOffsetPixels);
@jin123d
Copy link
Author

jin123d commented Nov 6, 2024

可以先使用 recyclerView.computeHorizontalScrollOffset()来计算一下。

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

1 participant