-
-
Save codeforfun-jp/4d1e6dfe916e971aded12ecfdd08ca48 to your computer and use it in GitHub Desktop.
CTB 3-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
startLabel.setVisibility(View.INVISIBLE); | |
boxY = 500.0f; | |
} | |
@Override | |
public boolean onTouchEvent(MotionEvent event) { | |
if (event.getAction() == MotionEvent.ACTION_DOWN) { | |
boxY -= 20; | |
} | |
box.setY(boxY); | |
return true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment