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.
精彩评论