AndroiDBeginner AndroiDBeginner - 3 years ago 120
Android Question

How to detect a double touch/taps on an Android ListView?

Do you know about how to detect two touches/taps on a

ListView
?

I am trying to have the following method called when double touched:

@Override
protected void onListItemClick(ListView l, View v, int position, long id) {
}


Thanks in advance.

Answer Source

Why aren't you using a Long Touch? Or are you using that already for something else? The advantages over a long touch over a double touch:

  • Long Press is a recommeded interaction in the UI Guidelines, double touch is not.
  • It's what users expect; a user might not find a double touch action as they won't go looking for it
  • It's already handled in the API.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download