Skip to content

Instantly share code, notes, and snippets.

@ifucolo
Created January 31, 2017 17:54
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/a131603dc8ea92dadc1618255335466b to your computer and use it in GitHub Desktop.
Save ifucolo/a131603dc8ea92dadc1618255335466b to your computer and use it in GitHub Desktop.
Button valid = (Button)findViewById(R.id.valid);
valid.setOnClickListener(new View.OnClickListener {
public void onClick(View v) {
// TODO: do some stuff...
}
public void onLongClick(View v) {
// we don't need to it
}
public void onTouch(View v, MotionEvent event) {
// we don't need to it
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment