Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 15, 2019 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/3c21fe73780f257fcc5807b080d80c82 to your computer and use it in GitHub Desktop.
Save parzibyte/3c21fe73780f257fcc5807b080d80c82 to your computer and use it in GitHub Desktop.
/**
* Interface definition for a callback to be invoked when a view has been clicked and held.
*/
public interface OnLongClickListener {
/**
* Called when a view has been clicked and held.
*
* @param v The view that was clicked and held.
*
* @return true if the callback consumed the long click, false otherwise.
*/
boolean onLongClick(View v);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment