-
Notifications
You must be signed in to change notification settings - Fork 399
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
ViewPager2 Support? #76
Comments
// WARN: we use knowledge of internal structure of ViewPager2 to setup overscroll behavior
viewPager2.children.filterIsInstance<RecyclerView>().firstOrNull()?.let {
OverScrollDecoratorHelper.setUpOverScroll(it, ORIENTATION_VERTICAL)
} |
For if (viewPager2.getChildAt(0) instanceof RecyclerView) {
OverScrollDecoratorHelper.setUpOverScroll((RecyclerView) viewPager2.getChildAt(0), OverScrollDecoratorHelper.ORIENTATION_HORIZONTAL);
} |
Perfect! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I've noticed only the legacy viewpager is supported. Given this project has recently seen more activity, it would be great to add this. I tried implementing my own ViewPager2OverScrollDecorAdapter by following the basic structure of ViewPagerOverScrollDecorAdapter but it doesn't seem to work. Would be awesome if this could be added.
The text was updated successfully, but these errors were encountered: