2017-07-29 1 views

Antwort

1

Versuchen Sie, diese

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

oder den angegebenen Link.

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

+0

, dass eine Geste Detektor auf die Aktivität hinzufügt. Ich versuche, es speziell auf einem TextView hinzuzufügen – Eddie

Verwandte Themen