I am trying to use ViewPager2 with Tablayout inside a Fragment. It does not show recyclerview when I keep it inside a Scrollview, whereas if I keep the ViewPager2 outside a Scrollview it works perfectly fine. Please help if anyone faced similar problem or have any idea about this?
I have two different layouts that I want under Scrolling. One layout has ViewPager and other is simple layout with Views.
Tried using NestedScrollview with fillViewport=true and set nested scrolling enabled to true. It didn't work
Kindly please provide your suggestions how to achieve this?
1 Replies
I am trying to use ViewPager2 with Tab layout inside a Fragment. It does not show a recycler view when I keep it inside a Scrollview, whereas if I keep the ViewPager2 outside a Scrollview it works perfectly fine. Please help if anyone faced a similar problem or has any idea about this?
I have two different layouts that I want under Scrolling. One layout has ViewPager and the other is a simple layout with Views.