Skip to content

Instantly share code, notes, and snippets.

@forforf
Created July 25, 2012 12:38
Show Gist options
  • Select an option

  • Save forforf/3175948 to your computer and use it in GitHub Desktop.

Select an option

Save forforf/3175948 to your computer and use it in GitHub Desktop.
Android - Events
//Touch Event
public boolean onTouchEvent(MotionEvent event) {
if (event != null) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
Log.d(TAG, "Touch Event");
return true;
}
}
return super.onTouchEvent(event);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment