You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
ViewPager2 is backed by RecyclerView. By knowing this we could implement the following workaround:
// WARN: we use knowledge of internal structure of ViewPager2 to setup overscroll behavior
viewPager2.children.filterIsInstance<RecyclerView>().firstOrNull()?.let {
OverScrollDecoratorHelper.setUpOverScroll(it, ORIENTATION_VERTICAL)
}
// WARN: we use knowledge of internal structure of ViewPager2 to setup overscroll behavior
viewPager2.children.filterIsInstance<RecyclerView>().firstOrNull()?.let {
OverScrollDecoratorHelper.setUpOverScroll(it, ORIENTATION_VERTICAL)
}
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: