Skip to main content
added 170 characters in body
Source Link
Sherif elKhatib
  • 46k
  • 16
  • 91
  • 107

Check this piece of code: (Override ScrollView's dispatchTouchEvent)

public class yourScrollView extends ScrollView{  //constructors and everything //You might want to pass your GestureDetector (of course) @Override public boolean dispatchTouchEvent(MotionEvent ev){ super.dispatchTouchEvent(ev); return myGestureDetector.onTouchEvent(ev); } } 

Check this piece of code: (Override ScrollView's dispatchTouchEvent)

 @Override public boolean dispatchTouchEvent(MotionEvent ev){ super.dispatchTouchEvent(ev); return myGestureDetector.onTouchEvent(ev); } 

Check this piece of code: (Override ScrollView's dispatchTouchEvent)

public class yourScrollView extends ScrollView{  //constructors and everything //You might want to pass your GestureDetector (of course) @Override public boolean dispatchTouchEvent(MotionEvent ev){ super.dispatchTouchEvent(ev); return myGestureDetector.onTouchEvent(ev); } } 
Source Link
Sherif elKhatib
  • 46k
  • 16
  • 91
  • 107

Check this piece of code: (Override ScrollView's dispatchTouchEvent)

 @Override public boolean dispatchTouchEvent(MotionEvent ev){ super.dispatchTouchEvent(ev); return myGestureDetector.onTouchEvent(ev); }