Skip to content Skip to sidebar Skip to footer

Viewpager2 With Tablayout Inside A Fragment Shows No Swipe Effect In Kotlin

In my MainActivity I have a viewpager2 with Tablayout with 5 tabs. The swipe there is working fine. But in one of the 5 tabs I again have a viewpager2 with a tablayout of 3 tabs. I

Solution 1:

The outer Viewpager is preventing the inner viewpager from receiving touch events. You need to intercept the event and stop the outer viewpager from swiping. See the link for implemented solution code


Post a Comment for "Viewpager2 With Tablayout Inside A Fragment Shows No Swipe Effect In Kotlin"