Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
CTB 4-2
}
}, 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