Notified when a scroll occurs with the initial on down MotionEvent
and the current move MotionEvent
. The distance in x and y is also supplied for convenience.
e1 | The first down motion event that started the scrolling. |
---|---|
e2 | The move motion event that triggered the current onScroll. |
distanceX | The distance along the X axis that has been scrolled since the last call to onScroll. This is NOT the distance between e1 and e2 . |
distanceY | The distance along the Y axis that has been scrolled since the last call to onScroll. This is NOT the distance between e1 and e2 . |
说说GestureDetector.OnGestureListener onScroll函数
原文:http://www.cnblogs.com/ldq2016/p/7000315.html