How to implement a recycler view inside a viewpager2
Basically, I want to add a recycler view inside a viewpager2 which will have 3 tabs that can be swiped left/right to switch tabs, and in each tab there will be present the recycler view which can be swiped vertically.
But every time I try to do that either viewpager2 is working (when the height of viewpager2 is set to match parent) or the vertically scrollable recycler view (when the viewpager2 height is set 0dp)
I am not getting any solutions from anywhere.(I am using kotlin for my app)