package com.example.cosmosclient.views; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import com.example.cosmosclient.R; public class SignupActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_signup); //各種idを取得 Button LoginButton = findViewById(R.id.LoginButton); Button MakeAccountButton = findViewById(R.id.MakeAccountButton); EditText EmailAddressText = findViewById(R.id.EMailAddressText); EditText PasswordText = findViewById(R.id.PasswordText); EditText ConfirmPasswordText = findViewById(R.id.ConfirmPasswordText); //Make Accountボタンの処理 MakeAccountButton.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){ Intent intent = new Intent(getApplication(), GroupList.class); startActivity(intent); finish(); } }); //サインイン画面への遷移処理 LoginButton.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){ Intent intent = new Intent(getApplication(),SigninActivity.class); startActivity(intent); finish(); } }); } }