ID修正
This commit is contained in:
parent
ed0c30de60
commit
58bbde92f5
|
@ -54,10 +54,10 @@ public class LoginActivity extends AppCompatActivity {
|
|||
|
||||
logger = loggerFactory.create("LoginActivity");
|
||||
|
||||
EditText emailEditText = findViewById(R.id.emailEditText);
|
||||
EditText passwordEditText = findViewById(R.id.passwordEditText);
|
||||
EditText emailEditText = findViewById(R.id.parentLoginEmailEditText);
|
||||
EditText passwordEditText = findViewById(R.id.parentLoginPasswordEditText);
|
||||
|
||||
findViewById(R.id.loginButton).setOnClickListener(v -> {
|
||||
findViewById(R.id.parentLoginButton).setOnClickListener(v -> {
|
||||
String email = emailEditText.getText().toString(); // TODO: メールアドレスのバリデーション
|
||||
String password = passwordEditText.getText().toString();
|
||||
|
||||
|
@ -87,7 +87,7 @@ public class LoginActivity extends AppCompatActivity {
|
|||
});
|
||||
});
|
||||
|
||||
findViewById(R.id.intentRegisterButton).setOnClickListener(v -> {
|
||||
findViewById(R.id.toRegisterButton).setOnClickListener(v -> {
|
||||
startActivity(new Intent(this, RegisterActivity.class));
|
||||
});
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:weightSum="10"
|
||||
app:layout_constraintBottom_toTopOf="@+id/childLoginButton"
|
||||
app:layout_constraintBottom_toTopOf="@+id/parentLoginButton"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent">
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
|||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/childLoginButton"
|
||||
android:id="@+id/parentLoginButton"
|
||||
style="@style/Widget.Material3.Button"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -83,7 +83,7 @@
|
|||
app:layout_constraintStart_toStartOf="parent">
|
||||
|
||||
<Button
|
||||
android:id="@+id/button2"
|
||||
android:id="@+id/toRegisterButton"
|
||||
style="@style/Widget.Material3.Button.TextButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -96,7 +96,7 @@
|
|||
android:text="新規登録" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button3"
|
||||
android:id="@+id/toChildLoginButton"
|
||||
style="@style/Widget.Material3.Button.TextButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
Loading…
Reference in New Issue
Block a user