onFling and onSCroll methods are not detecting on Android Canvas?

In my sample app, I'm drawing a view using a Canvas and GestureDetector. For the OnGestureListener, all methods are working except onFling and onScroll.

Can anybody sugest me how I can detect the Fling and Scroll gestures on the Canvas.

Thanks


Make sure your onDown method in your GestureListener class is returning true. OnFling and OnScroll won't fire without the OnDown returning true.

链接地址: http://www.djcxy.com/p/16210.html

上一篇: 无法在Android中检测FrameLayout上的手势

下一篇: Android Canvas上无法检测onFling和onSCroll方法?