I have a viewpager2 with TabLayout which hosts fragments that contain a vertical RecyclerView as shown in the GIF
Sometimes when I scroll to top or bottom the ViewPager swipe occurs and changes tab. I wrapped my RecyclerView inside NestedScrollableHost
class, however, it does not solve the issue.
Asked
Active
Viewed 597 times
0

Sreehari K
- 887
- 6
- 16
2 Answers
0
I haven't encountered this particular problem, but had some other bugs when using viewpager2. You could try changing to the oryginal viewpager.

baltekg
- 985
- 9
- 31
-
No, I use in my apps all the time. If you want to extend a viewpager functionalities, you can only use viewpager not viewpager2. I'll give it a try ;) – baltekg Aug 12 '20 at 15:20
0
I have noticed this behavior with ViewPager2. As of now, the only way to solve is to use original ViewPager.

Syed Zeeshan
- 490
- 1
- 7
- 13