From 8c4e281e853b9598fc499cbcfa6e9257353187a1 Mon Sep 17 00:00:00 2001 From: alsong <138569524+songpink@users.noreply.github.com> Date: Tue, 22 Oct 2024 23:55:08 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=94=94=EB=B0=94=EC=9A=B4=EC=8A=A4=20?= =?UTF-8?q?=ED=83=80=EC=9E=84=20=EB=B3=80=EA=B2=BD=20(#614)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 공모글 작성/수정 제출 버튼 디바운스타임 1200ms로 조정 * fix: 공모글 작성/수정 시 총원 조절 버튼 디바운스 해제 * fix: Alert 확인 버튼 디바운스타임 1200ms로 조정 --- android/app/src/main/res/layout/dialog_alert.xml | 3 ++- .../res/layout/fragment_offering_modify_essential.xml | 10 ++++++---- .../res/layout/fragment_offering_modify_optional.xml | 2 +- .../res/layout/fragment_offering_write_essential.xml | 10 ++++++---- .../res/layout/fragment_offering_write_optional.xml | 4 +++- 5 files changed, 18 insertions(+), 11 deletions(-) diff --git a/android/app/src/main/res/layout/dialog_alert.xml b/android/app/src/main/res/layout/dialog_alert.xml index aaa16919c..307a97a8a 100644 --- a/android/app/src/main/res/layout/dialog_alert.xml +++ b/android/app/src/main/res/layout/dialog_alert.xml @@ -26,7 +26,7 @@ android:layout_marginTop="@dimen/size_50" android:layout_marginEnd="@dimen/size_50" android:fontFamily="@font/suit_bold" - android:text="@string/my_page_logout_dialog_description" + tools:text="다이얼로그 메세지" android:textSize="@dimen/size_15" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -59,6 +59,7 @@ android:fontFamily="@font/suit_semibold" android:text="@string/offering_detail_dialog_confirm_text" app:debouncedOnClick="@{() -> listener.onClickConfirm()}" + app:debounceTime="@{1200L}" android:textColor="@color/white" android:textSize="@dimen/size_15" app:layout_constraintBottom_toBottomOf="parent" diff --git a/android/app/src/main/res/layout/fragment_offering_modify_essential.xml b/android/app/src/main/res/layout/fragment_offering_modify_essential.xml index 4efeb52eb..bb8123089 100644 --- a/android/app/src/main/res/layout/fragment_offering_modify_essential.xml +++ b/android/app/src/main/res/layout/fragment_offering_modify_essential.xml @@ -84,10 +84,11 @@ android:background="@drawable/btn_offering_write_minus_total_personnel" android:fontFamily="@font/suit_bold" android:gravity="center" - app:debouncedOnClick="@{() -> vm.decreaseTotalCount()}" android:text="@string/all_minus" android:textColor="@color/white" android:textSize="@dimen/size_20" + app:debounceTime="@{0L}" + app:debouncedOnClick="@{() -> vm.decreaseTotalCount()}" app:layout_constraintStart_toStartOf="@id/tv_title" app:layout_constraintTop_toBottomOf="@id/tv_total_personnel" /> @@ -118,10 +119,11 @@ android:background="@drawable/btn_offering_write_minus_total_personnel" android:fontFamily="@font/suit_bold" android:gravity="center" - app:debouncedOnClick="@{() -> vm.increaseTotalCount()}" android:text="@string/all_plus" android:textColor="@color/white" android:textSize="@dimen/size_20" + app:debounceTime="@{0L}" + app:debouncedOnClick="@{() -> vm.increaseTotalCount()}" app:layout_constraintStart_toEndOf="@id/et_total_personnel" app:layout_constraintTop_toTopOf="@id/btn_minus_total_personnel" /> @@ -246,8 +248,8 @@ android:fontFamily="@font/suit_medium" android:gravity="center_vertical" android:hint="@string/write_deadline_description" - app:debouncedOnClick="@{() -> vm.makeMeetingDateChoiceEvent()}" android:text="@{vm.meetingDate}" + app:debouncedOnClick="@{() -> vm.makeMeetingDateChoiceEvent()}" app:layout_constraintStart_toStartOf="@id/tv_title" app:layout_constraintTop_toBottomOf="@id/tv_meeting_date" /> @@ -282,10 +284,10 @@ android:background="@drawable/btn_background_selector" android:enabled="@{vm.essentialSubmitButtonEnabled}" android:fontFamily="@font/suit_medium" - app:debouncedOnClick="@{() -> vm.makeNavigateToOptionalEvent()}" android:text="@{vm.essentialSubmitButtonEnabled ? @string/modify_submit : @string/write_start_offering_button_disabled}" android:textColor="@color/white" android:textSize="@dimen/size_16" + app:debouncedOnClick="@{() -> vm.makeNavigateToOptionalEvent()}" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/android/app/src/main/res/layout/fragment_offering_modify_optional.xml b/android/app/src/main/res/layout/fragment_offering_modify_optional.xml index 64fecb3fb..cb48431e0 100644 --- a/android/app/src/main/res/layout/fragment_offering_modify_optional.xml +++ b/android/app/src/main/res/layout/fragment_offering_modify_optional.xml @@ -272,7 +272,7 @@ android:textColor="@color/white" android:textSize="@dimen/size_16" app:debouncedOnClick="@{() -> vm.postOfferingModify()}" - app:debounceTime="@{800L}" + app:debounceTime="@{1200L}" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/android/app/src/main/res/layout/fragment_offering_write_essential.xml b/android/app/src/main/res/layout/fragment_offering_write_essential.xml index a2b745084..0d5e59603 100644 --- a/android/app/src/main/res/layout/fragment_offering_write_essential.xml +++ b/android/app/src/main/res/layout/fragment_offering_write_essential.xml @@ -84,10 +84,11 @@ android:background="@drawable/btn_offering_write_minus_total_personnel" android:fontFamily="@font/suit_bold" android:gravity="center" - app:debouncedOnClick="@{() -> vm.decreaseTotalCount()}" android:text="@string/all_minus" android:textColor="@color/white" android:textSize="@dimen/size_20" + app:debounceTime="@{0L}" + app:debouncedOnClick="@{() -> vm.decreaseTotalCount()}" app:layout_constraintStart_toStartOf="@id/tv_title" app:layout_constraintTop_toBottomOf="@id/tv_total_personnel" /> @@ -118,10 +119,11 @@ android:background="@drawable/btn_offering_write_minus_total_personnel" android:fontFamily="@font/suit_bold" android:gravity="center" - app:debouncedOnClick="@{() -> vm.increaseTotalCount()}" android:text="@string/all_plus" android:textColor="@color/white" android:textSize="@dimen/size_20" + app:debounceTime="@{0L}" + app:debouncedOnClick="@{() -> vm.increaseTotalCount()}" app:layout_constraintStart_toEndOf="@id/et_total_personnel" app:layout_constraintTop_toTopOf="@id/btn_minus_total_personnel" /> @@ -246,8 +248,8 @@ android:fontFamily="@font/suit_medium" android:gravity="center_vertical" android:hint="@string/write_deadline_description" - app:debouncedOnClick="@{() -> vm.makeMeetingDateChoiceEvent()}" android:text="@{vm.meetingDate}" + app:debouncedOnClick="@{() -> vm.makeMeetingDateChoiceEvent()}" app:layout_constraintStart_toStartOf="@id/tv_title" app:layout_constraintTop_toBottomOf="@id/tv_meeting_date" /> @@ -282,10 +284,10 @@ android:background="@drawable/btn_background_selector" android:enabled="@{vm.essentialSubmitButtonEnabled}" android:fontFamily="@font/suit_medium" - app:debouncedOnClick="@{() -> vm.makeNavigateToOptionalEvent()}" android:text="@{vm.essentialSubmitButtonEnabled ? @string/write_start_offering : @string/write_start_offering_button_disabled}" android:textColor="@color/white" android:textSize="@dimen/size_16" + app:debouncedOnClick="@{() -> vm.makeNavigateToOptionalEvent()}" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" diff --git a/android/app/src/main/res/layout/fragment_offering_write_optional.xml b/android/app/src/main/res/layout/fragment_offering_write_optional.xml index d3ad5f5f3..8d201d842 100644 --- a/android/app/src/main/res/layout/fragment_offering_write_optional.xml +++ b/android/app/src/main/res/layout/fragment_offering_write_optional.xml @@ -213,11 +213,13 @@ android:id="@+id/et_contents" style="@style/Theme.AppCompat.TextView.Write.EditText" android:layout_height="278dp" + android:layout_marginTop="20dp" android:gravity="top" android:hint="@string/write_deadline_contents_description" android:maxLength="1000" android:padding="12dp" android:text="@={vm.description}" + app:layout_constraintHorizontal_bias="0.0" app:layout_constraintStart_toStartOf="@id/tv_information_message_optional" app:layout_constraintTop_toBottomOf="@+id/tv_contents" /> @@ -269,7 +271,7 @@ android:background="@drawable/btn_background_selector" android:fontFamily="@font/suit_medium" app:debouncedOnClick="@{() -> vm.postOffering()}" - app:debounceTime="@{800L}" + app:debounceTime="@{1200L}" android:text="@string/write_start_offering" android:textColor="@color/white" android:textSize="@dimen/size_16"