2017-07-29 77 views

回答

1

試試這個

// Instantiate the gesture detector with the 
     // application context and an implementation of 
     // GestureDetector.OnGestureListener 
     mDetector = new GestureDetectorCompat(this,this); 
     // Set the gesture detector as the double tap 
     // listener. 
     mDetector.setOnDoubleTapListener(this); 

或使用給定的鏈接。

http://www.techotopia.com/index.php/Detecting_Common_Gestures_using_the_Android_Gesture_Detector_Class

+0

在活動中添加了手勢檢測器。我正試圖在TextView上添加它 – Eddie

相關問題