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
Post a Comment