Newer
Older
IrisClient / app / src / main / java / org / ntlab / irisclient / TestEnterActivity.java
  1. package org.ntlab.irisclient;
  2.  
  3. import android.content.Intent;
  4. import android.os.Bundle;
  5. import android.view.View;
  6. import android.widget.Button;
  7. import android.widget.ImageButton;
  8.  
  9. import androidx.appcompat.app.ActionBar;
  10. import androidx.appcompat.app.AppCompatActivity;
  11.  
  12. import org.ntlab.irisclient.MainActivity;
  13. import org.ntlab.irisclient.R;
  14.  
  15. public class TestEnterActivity extends AppCompatActivity {
  16.  
  17. @Override
  18. protected void onCreate(Bundle savedInstanceState) {
  19. super.onCreate(savedInstanceState);
  20. setContentView(R.layout.test_activity_entrance);
  21.  
  22. //上の表示を削除
  23. ActionBar actionBar = getSupportActionBar();
  24. if(actionBar != null) {
  25. actionBar.hide();
  26. }
  27.  
  28. //drawtestへ
  29. Button drawButton = findViewById(R.id.dtestenter);
  30. drawButton.setOnClickListener(new View.OnClickListener() {
  31. public void onClick(View v) {
  32. Intent intent = new Intent(TestEnterActivity.this,TestDrawingActivity.class);
  33. startActivity(intent);
  34. }
  35. });
  36.  
  37. //gametestへ
  38. Button gameButton =(Button)findViewById(R.id.gtestenter);
  39. gameButton.setOnClickListener(new View.OnClickListener() {
  40. public void onClick(View v){
  41. Intent intent = new Intent(TestEnterActivity.this,TestGameActivity.class);
  42. startActivity(intent);
  43. }
  44. });
  45.  
  46. }
  47. }