GestureDetector.SimpleOnGestureListener and GestureDetectorCompat don't work. What's wrong with my code?
问题 I'm following Detecting common gestures guide. I have linked to android-support-v4.jar library to get GestureDetectorCompat , and my code seems exactly the same as in the guide, except I'm detecting gestures in my custom view rather than in activity: public class MyGlView extends GLSurfaceView { private GestureDetectorCompat m_gestureDetector = null; public MyGlView(Context context, AttributeSet attrs) { super(context, attrs); init(context); } public MyGlView(Context context) { super(context)