Android HorizontalScrollView disable touch handling but allow child get events -



Android HorizontalScrollView disable touch handling but allow child get events -

i have case includes 3 scrollviews stacked next way:

horizontalscrollview on top , contains layout, has scrollview, contains layout containing horizontalscrollview.

horizontalscrollview

--------scrollview

------------horizontalscrollview

without top horizontalscrollview touch event's work okay, , need disable top horizontalscrollview, allow child's events normally, kid horizontalscrollview scroll top horizontalscrollview.

thanks.

i not clear regarding want but, should work,

ontouchlistener skiptouchlistener = new ontouchlistener() { @override public boolean ontouch(view v, motionevent event) { //do nil homecoming false; } }; yourview.setontouchlistener(skiptouchlistener);

this way yourview not process touch events.

android android-layout horizontalscrollview android-scrollview

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -