Skip to content

Commit

Permalink
#15 [add] 비밀번호에 맞지 않을 경우, 경고문 뜨게 작성
Browse files Browse the repository at this point in the history
  • Loading branch information
stellar-halo committed Dec 7, 2023
1 parent 280a0d0 commit 5662d55
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/src/main/res/layout/activity_sign_up.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,26 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:backgroundTint="@{vm.isPasswordMeetCriteria == true? @color/black : @color/red}"
android:backgroundTint="@{vm.isPasswordMeetCriteria != null && vm.isPasswordMeetCriteria == false ? @color/red : @color/black}"
android:hint="@string/password_hint"
android:inputType="textPassword"
android:text="@={vm.password}"
android:textSize="20sp"
app:layout_constraintStart_toStartOf="@id/tv_sign_up_id"
app:layout_constraintTop_toBottomOf="@id/tv_sign_up_password" />

<TextView
android:id="@+id/tv_sign_up_password_error"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="5dp"
android:text="@string/sign_up_password_error"
android:textColor="@color/red"
android:textSize="13sp"
android:visibility="@{vm.isPasswordMeetCriteria != null &amp;&amp; vm.isPasswordMeetCriteria == false ? View.VISIBLE : View.INVISIBLE}"
app:layout_constraintStart_toStartOf="@id/tv_sign_up_id"
app:layout_constraintTop_toBottomOf="@id/et_sign_up_password" />

<TextView
android:id="@+id/tv_sign_up_nickname"
android:layout_width="wrap_content"
Expand Down

0 comments on commit 5662d55

Please sign in to comment.