Skip to content

Instantly share code, notes, and snippets.

@ajdeguzman
Created October 13, 2014 13:46
Show Gist options
  • Save ajdeguzman/01910889f7d71d987afb to your computer and use it in GitHub Desktop.
Save ajdeguzman/01910889f7d71d987afb to your computer and use it in GitHub Desktop.
Android Gestures
@Override
public void onSwipe(int direction) {
switch (direction) {
case SimpleGestureFilter.SWIPE_RIGHT :
break;
case SimpleGestureFilter.SWIPE_LEFT :
startActivity(new Intent(this, SecondActivity.class));
break;
case SimpleGestureFilter.SWIPE_DOWN :
break;
case SimpleGestureFilter.SWIPE_UP :
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment