diff --git a/app/src/main/java/com/example/cosmosclient/views/SigninActivity.java b/app/src/main/java/com/example/cosmosclient/views/SigninActivity.java index 4fe2370..5cd0d4e 100644 --- a/app/src/main/java/com/example/cosmosclient/views/SigninActivity.java +++ b/app/src/main/java/com/example/cosmosclient/views/SigninActivity.java @@ -5,6 +5,7 @@ import android.os.Bundle; import android.view.View; import android.widget.Button; +import android.widget.EditText; import com.example.cosmosclient.R; @@ -15,17 +16,24 @@ super.onCreate(savedInstanceState); setContentView(R.layout.activity_signin); -// Button SigninButton = findViewById(R.id.SigninButton); -// SigninButton.setOnClickListener(new View.OnClickListener() { -// @Override -// public void onClick(View v) { -// Intent intent = new Intent(getApplication(), GroupsListActivity.class); -// startActivity(intent); -// finish(); -// } -// }); + //各種IDを取得 + Button SigninButton = findViewById(R.id.SigninButton); + Button SignupButton = findViewById(R.id.SignupButton); + EditText EmailAddressText = findViewById(R.id.EMailAddressText); + EditText PasswordText = findViewById(R.id.PasswordText); + Button ForgotPasswordButton = findViewById(R.id.ForgotPasswordButton); - Button SignupButton = findViewById(R.id.SignupButton); + //Sign inボタンの処理 + SigninButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + Intent intent = new Intent(getApplication(), SignupActivity.class); + startActivity(intent); + finish(); + } + }); + + //サインアップ画面への遷移処理 SignupButton.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){