2017-07-29 9 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