Sunday, November 7, 2010

onFling and onScroll in custom view

There is a problem, that in custom view SimpleOnGestureListener onFling is not called.

Solution is - implement GestureDetector.OnGestureListener and always return true from onDown(MotionEvent e) method, which will lead to onFling and onScroll being called.

No comments:

Post a Comment