Skip to content Skip to sidebar Skip to footer

Viewpager Inside Viewpager.how To Scroll Parent Pager Horizontally Instead Of Scrolling Child, But Keep Child Pager Vertical Scroll?

I have a parent ViewPager, each page of which contains a child ViewPager. Child ViewPager may contain a ListView or a vertical ScrollView. I want to pass horizontal scroll from chi

Solution 1:

The solution was easier than I expected.

Just override canScrollHorizontally in child ViewPager and return false.

Post a Comment for "Viewpager Inside Viewpager.how To Scroll Parent Pager Horizontally Instead Of Scrolling Child, But Keep Child Pager Vertical Scroll?"