Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
CTB 4-8
public boolean onTouchEvent(MotionEvent event) {
if (start_flg == false) {
start_flg = true;
FrameLayout frame = findViewById(;
frameHeight = frame.getHeight();
boxY = box.getY();
boxSize = box.getHeight();
timer.schedule(new TimerTask() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment