diff --git a/app/src/main/java/org/ntlab/acanthus_client/views/animation/AnimationActivity.java b/app/src/main/java/org/ntlab/acanthus_client/views/animation/AnimationActivity.java index cdfab58..9b5de20 100644 --- a/app/src/main/java/org/ntlab/acanthus_client/views/animation/AnimationActivity.java +++ b/app/src/main/java/org/ntlab/acanthus_client/views/animation/AnimationActivity.java @@ -3,33 +3,33 @@ import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +import org.ntlab.acanthus_client.R; +import org.ntlab.acanthus_client.databinding.ActivityPaintBinding; // 表示ページ public class AnimationActivity extends AppCompatActivity { private AnimationCanvas animationCanvas; + private ActivityPaintBinding binding; + private View view; //animationCanvasの表示 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + setContentView(R.layout.activity_animation); - animationCanvas = new AnimationCanvas(this); - setContentView(animationCanvas); - } - - //タイマーの停止 - @Override - protected void onPause(){ - super.onPause(); - animationCanvas.onPouse(); - } - - //再生(タイマーの生成) - @Override - protected void onResume(){ - super.onResume(); - animationCanvas.onResume(); + animationCanvas = this.findViewById(R.id.animationMyCanvas); + Button button = findViewById(R.id.button_playback); + button.setOnClickListener(new View.OnClickListener(){ + @Override + public void onClick(View v) { + animationCanvas.onClickPlayback(); + } + }); } } \ No newline at end of file