Skip to content

Commit

Permalink
[Feat] #17 - 회원가입 레이아웃 수정
Browse files Browse the repository at this point in the history
- 아이디 닉네임 중복확인 버튼 추가
  • Loading branch information
WooBinHam committed Aug 17, 2023
1 parent 518c6ab commit 579c755
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 7 deletions.
38 changes: 33 additions & 5 deletions core/presentation/src/main/res/layout/fragment_sign_up.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,31 +32,45 @@
app:layout_constraintTop_toTopOf="parent" />

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/emailTextInputLayout"
android:id="@+id/idTextInputLayout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="12dp"
app:layout_constraintEnd_toStartOf="@+id/btn_checkDup_userId"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/titleTextView">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/emailTextInputEditText"
android:id="@+id/idTextInputEditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/id_example"
android:minHeight="48dp"
android:text="@={viewModel.idText}" />
</com.google.android.material.textfield.TextInputLayout>

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btn_checkDup_userId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/rectangle_black_r20"
android:onClick="@{() -> viewModel.signUp()}"
android:paddingHorizontal="16dp"
android:text="@string/dup_check"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="@+id/idTextInputLayout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/idTextInputLayout" />

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/passwordTextInputLayout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/emailTextInputLayout">
app:layout_constraintTop_toBottomOf="@+id/idTextInputLayout">

<com.google.android.material.textfield.TextInputEditText
android:id="@+id/passwordTextInputEditText"
Expand Down Expand Up @@ -94,7 +108,8 @@
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
app:layout_constraintEnd_toEndOf="parent"
android:layout_marginEnd="12dp"
app:layout_constraintEnd_toStartOf="@+id/btn_checkDup_nickname"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/passwordDoubleCheckTextInputLayout">

Expand All @@ -110,6 +125,19 @@
android:text="@={viewModel.nicknameText}" />
</com.google.android.material.textfield.TextInputLayout>

<androidx.appcompat.widget.AppCompatButton
android:id="@+id/btn_checkDup_nickname"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/rectangle_black_r20"
android:onClick="@{() -> viewModel.signUp()}"
android:paddingHorizontal="16dp"
android:text="@string/dup_check"
android:textColor="@color/white"
app:layout_constraintBottom_toBottomOf="@+id/nicknameTextInputLayout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/nicknameTextInputLayout" />

<com.google.android.material.textfield.TextInputLayout
android:id="@+id/phoneNumberTextInputLayout"
android:layout_width="0dp"
Expand Down
5 changes: 3 additions & 2 deletions core/presentation/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
<string name="login">LOGIN</string>
<string name="sign_up">회원가입</string>
<string name="id_example">아이디: 예) cazait123</string>
<string name="dup_check">중복확인</string>
<string name="password">비밀번호</string>
<string name="password_double_check">비밀번호 확인</string>
<string name="nickname">닉네임</string>
<string name="phoneNumber">휴대폰 번호</string>
<string name="verificationCode">인증번호</string>
<string name="phoneNumber">휴대폰 번호: 예) 01012345678</string>
<string name="verificationCode">인증번호(6자리)</string>
<string name="receive_code">인증번호받기</string>
<string name="send_code">인증번호확인</string>
<string name="do_sign_up">회원가입하기</string>
Expand Down

0 comments on commit 579c755

Please sign in to comment.