package org.ntlab.irisclient; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ImageButton; import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.AppCompatActivity; import org.ntlab.irisclient.MainActivity; import org.ntlab.irisclient.R; public class TestEnterActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.test_activity_entrance); //上の表示を削除 ActionBar actionBar = getSupportActionBar(); if(actionBar != null) { actionBar.hide(); } //drawtestへ Button drawButton = findViewById(R.id.dtestenter); drawButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent intent = new Intent(TestEnterActivity.this,TestDrawingActivity.class); startActivity(intent); } }); //gametestへ Button gameButton =(Button)findViewById(R.id.gtestenter); gameButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v){ Intent intent = new Intent(TestEnterActivity.this,TestGameActivity.class); startActivity(intent); } }); } }