Q:

android.view.GestureDetector.OnGestureListener onFling() vs onScroll()

What is the difference of events of onFling() and onScroll() of android.view.GestureDetector.OnGestureListener?
link text

A:

onScroll() happens after the user puts his finger down on the screen and slides his finger across the screen without lifting it. onFling() happens if the user scrolls and then lifts his finger. A fling is triggered only if the motion was fast enough.

A:

Actually onFling has nothing to do with the speed at which the movement ocurred. It's the user, via the velocityX and velocityY parameters that determine if the speed (or distance, via the MotionEvent parameters) was good enough for their purposes.
The onScroll is constantly called when the user is moving his finger, where as the onFling is called only after the user lifts his finger.

