i want to catch double click on textview for that i have used below code
but it still not working :(
TextView txtOne;
@Override
protected void onCreate(
For SimpleGestureDetector, you need to override onDown() and return true to trigger double tap detector.
Whether or not you use
GestureDetector.OnGestureListener, it's best practice to implement anonDown()method that returnstrue. This is because all gestures begin with anonDown()message. If you returnfalsefromonDown(), asGestureDetector.SimpleOnGestureListenerdoes by default, the system assumes that you want to ignore the rest of the gesture, and the other methods ofGestureDetector.OnGestureListenernever get called. This has the potential to cause unexpected problems in your app. The only time you should returnfalsefromonDown()is if you truly want to ignore an entire gesture.
Source: http://developer.android.com/training/gestures/detector.html