android - ViewPager inside ViewPager.How to scroll parent pager horizontally instead of scrolling child, but keep child pager vertical scroll? -


i have parent viewpager, each page of contains child viewpager. child viewpager may contain listview or vertical scrollview. want pass horizontal scroll child viewpager parent viewpager, want keep child viewpager scrollable vertical.

overriding dispatchtouchevent(motionevent event) in child viewpager , returning false helps pass motion events parent viewpager, how keep listview , scrollview in child viewpager scrollable?

the solution easier expected.

just override canscrollhorizontally in child viewpager , return false.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -