2017-07-29 2 views

Répondre

1

Essayez cette

// 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); 

ou utilisez le lien donné.

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

+0

Cela ajoute un détecteur de Gesture sur l'activité. J'essaie de l'ajouter spécifiquement sur un TextView – Eddie