I have scrollview in that I have a table view and I have gestureoverlayview .... my problem is when I make any gesture horizontally, it works fine, but when I make some kind of gesture vertically, scrollview starting to move ... the event turns out to be captured by scrollview ... I tried the following code, but it doesn't work
public boolean dispatchTouchEvent(MotionEvent ev) { System.out.println("m touched"); if(ev.equals(sEvent)){ System.out.println("in touched2"); return overlay.dispatchTouchEvent(ev); }else{ return scl.dispatchTouchEvent(ev); } }
Majid source share