Two nested vertical scroll views in android -
i using 2 vertical scroll views(say,parent , child).what issue not able scroll child view instead scrolls whole parent view,is there way can restrict parent view scroll when scroll child scroll view , vice versa?
need help...thanks in advance..!!
you need handle touch event effectively
outerscrollview.setontouchlistener(new view.ontouchlistener() { public boolean ontouch(view v, motionevent event) { findviewbyid(r.id.inner_scroll).getparent() .requestdisallowintercepttouchevent(false); return false; } }); innerscrollview.setontouchlistener(new view.ontouchlistener() { public boolean ontouch(view v, motionevent event) { v.getparent().requestdisallowintercepttouchevent(true); return false; } });