diff --git a/app/src/main/java/com/example/cosmosclient/AddMemberActivity.java b/app/src/main/java/com/example/cosmosclient/AddMemberActivity.java index 679eb5b..29a1588 100644 --- a/app/src/main/java/com/example/cosmosclient/AddMemberActivity.java +++ b/app/src/main/java/com/example/cosmosclient/AddMemberActivity.java @@ -1,13 +1,45 @@ -package com.example.cosmosclient; - -import android.support.v7.app.AppCompatActivity; -import android.os.Bundle; - -public class AddMemberActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_add_member); - } -} +package com.example.cosmosclient; + +import android.content.Intent; +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; + +public class AddMemberActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_add_member); + + //ここからQRからメンバー追加の画面遷移処理画面を記述 + Button qrButton = findViewById(R.id.addQR); + qrButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(getApplication(), DisplayQRActivity.class); + startActivity(intent); + } + }); + //ここからIDからメンバー追加の画面遷移処理画面を記述 + Button idButton = findViewById(R.id.addID); + idButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(getApplication(), DisplayQRActivity.class); + startActivity(intent); + } + }); + //ここからMailからメンバー追加の画面遷移処理画面を記述 + Button mailButton = findViewById(R.id.addMail); + mailButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(getApplication(), DisplayQRActivity.class); + startActivity(intent); + } + }); + + } +}