From 1441637d1d332d7c37f6d8294e844d026be52c79 Mon Sep 17 00:00:00 2001 From: Sangho Kim Date: Fri, 2 Jun 2023 15:20:47 +0900 Subject: [PATCH] =?UTF-8?q?#11=20/=20[UI]=20login=20=EB=AA=A8=EB=91=90=20T?= =?UTF-8?q?extInput=EC=9C=BC=EB=A1=9C=20=EB=B3=80=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sopt/presentation/auth/SignUpActivity.kt | 4 +- .../sopt/presentation/auth/SignUpViewModel.kt | 3 +- app/src/main/res/layout/activity_login.xml | 55 ++++++++++++------- app/src/main/res/layout/activity_sign_up.xml | 37 ++++++------- 4 files changed, 56 insertions(+), 43 deletions(-) diff --git a/app/src/main/java/org/android/go/sopt/presentation/auth/SignUpActivity.kt b/app/src/main/java/org/android/go/sopt/presentation/auth/SignUpActivity.kt index ec7396d..3d84f6c 100644 --- a/app/src/main/java/org/android/go/sopt/presentation/auth/SignUpActivity.kt +++ b/app/src/main/java/org/android/go/sopt/presentation/auth/SignUpActivity.kt @@ -84,8 +84,8 @@ class SignUpActivity : BindingActivity(R.layout.activity_ } private fun setKeyboardHeight() { - keyboardVisibilityUtils = KeyboardVisibilityUtils(window, - onShowKeyboard = { keyboardHeight -> + keyboardVisibilityUtils = + KeyboardVisibilityUtils(window, onShowKeyboard = { keyboardHeight -> binding.svSignUp.run { smoothScrollTo(scrollX, scrollY + keyboardHeight) } diff --git a/app/src/main/java/org/android/go/sopt/presentation/auth/SignUpViewModel.kt b/app/src/main/java/org/android/go/sopt/presentation/auth/SignUpViewModel.kt index 33c2f62..bb02bf6 100644 --- a/app/src/main/java/org/android/go/sopt/presentation/auth/SignUpViewModel.kt +++ b/app/src/main/java/org/android/go/sopt/presentation/auth/SignUpViewModel.kt @@ -11,7 +11,6 @@ import org.android.go.sopt.module.AuthServicePool import retrofit2.Call import retrofit2.Callback import retrofit2.Response -import timber.log.Timber import java.util.regex.Pattern class SignUpViewModel : ViewModel() { @@ -70,7 +69,7 @@ class SignUpViewModel : ViewModel() { fun setButtonState() { buttonVaild.value = (isIdValid.value == true && isPwValid.value == true && idText.value!!.isNotBlank() && pwText.value!!.isNotBlank()) - Log.d("qqqq","${buttonVaild}") + Log.d("qqqq", "${buttonVaild}") } companion object { diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml index 4780142..41c6c68 100644 --- a/app/src/main/res/layout/activity_login.xml +++ b/app/src/main/res/layout/activity_login.xml @@ -34,21 +34,28 @@ android:textSize="25sp" android:textStyle="bold" app:layout_constraintStart_toStartOf="@id/tv_login_title" - app:layout_constraintBottom_toTopOf="@id/et_login_id"/> + app:layout_constraintBottom_toTopOf="@id/layout_login_id"/> - + app:layout_constraintBottom_toTopOf="@id/tv_login_pw"> + + + + + app:layout_constraintStart_toStartOf="@id/tv_login_title" + app:layout_constraintBottom_toTopOf="@id/layout_login_pw"/> - + app:layout_constraintBottom_toTopOf="@id/btn_login"> + + + +