fhucho fhucho - 6 months ago 16
Android Question

Change long click delay

I am listening for a View's long click events via setOnLongClickListener(). Can I change the long click delay / duration?


AFAIK, no. It is hard-wired in the framework via getLongPressTimeout() on ViewConfiguration.

You are welcome to handle your own touch events and define your own "long click" concept. Just be sure that it is not too dramatically different from what the user expects, and most likely the user will expect what all the other apps use, which is the standard 500ms duration.