Skip to content

Instantly share code, notes, and snippets.

@codingwithsara
Last active February 2, 2019 01:42
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 codingwithsara/d08bb5e8266e1d3e319f617af5d6d795 to your computer and use it in GitHub Desktop.
Save codingwithsara/d08bb5e8266e1d3e319f617af5d6d795 to your computer and use it in GitHub Desktop.
}
}, 0, 20);
}
public void changePos() {
box.setY(boxY);
}
@Override
public boolean onTouchEvent(MotionEvent event) {
if (event.getAction() == MotionEvent.ACTION_DOWN) {
boxY -= 20;
}
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment