I have a CustomAutoCompleteTextView and I want to be able to call showDropDown(); when the user double-tap on it.
As the title says implements GestureDetector.OnDoubleTapListener sounds like a good solution, but once added the mandatory methods to my custom view I have no idea on how to set the whole thing up
These are the methods to implement:
@Override public boolean onSingleTapConfirmed(MotionEvent e) { return false; } @Override public boolean onDoubleTap(MotionEvent e) { return false; } @Override public boolean onDoubleTapEvent(MotionEvent e) { return false; } I want to archive something like this:
@Override public boolean onDoubleTapEvent(MotionEvent e) { showDropDown();//AutoCompleteTextView's this line is enough but the event is never triggered return super.doYourThing(); }