I used the following double tap code
setOnTouchListener(this);
detector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() {
@Override
public boolean onDoubleTapEvent(MotionEvent ev) {
int x = (int)ev.getX();
int y = (int)ev.getY();
Toast.makeText(getContext(), "Double tapped", Toast.LENGTH_LONG).show();
}
});
When I run it runs the toast twice
Any ideas?
Running on KitKat 4.4
Any help appreciated
Mark