Skip to content

Instantly share code, notes, and snippets.

@codeforfun-jp
Created June 7, 2021 09:22
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 codeforfun-jp/a50c6ab7b411fd466bb3d64f0a660a7c to your computer and use it in GitHub Desktop.
Save codeforfun-jp/a50c6ab7b411fd466bb3d64f0a660a7c to your computer and use it in GitHub Desktop.
CTB 4-8
@Override
public boolean onTouchEvent(MotionEvent event) {
if (start_flg == false) {
start_flg = true;
FrameLayout frame = findViewById(R.id.frame);
frameHeight = frame.getHeight();
boxY = box.getY();
boxSize = box.getHeight();
startLabel.setVisibility(View.GONE);
timer.schedule(new TimerTask() {
@Override
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment