Skip to content

Instantly share code, notes, and snippets.

@ifucolo
Last active January 31, 2017 18:01
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 ifucolo/f4f3517acabeecf9e0a41baa0599c26b to your computer and use it in GitHub Desktop.
Save ifucolo/f4f3517acabeecf9e0a41baa0599c26b to your computer and use it in GitHub Desktop.
public interface OnClickListener {
void onClick(View v);
}
public interface OnLongClickListener {
void onLongClick(View v);
}
public interface OnTouchListener {
void onTouch(View v, MotionEvent event);
}
valid.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View view) {
// TODO:
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment