fhucho fhucho - 1 year ago 162
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download