Skip to content

Commit

Permalink
feat: 디바운스 타임 변경 (#614)
Browse files Browse the repository at this point in the history
* fix: 공모글 작성/수정 제출 버튼 디바운스타임 1200ms로 조정

* fix: 공모글 작성/수정 시 총원 조절 버튼 디바운스 해제

* fix: Alert 확인 버튼 디바운스타임 1200ms로 조정
  • Loading branch information
songpink authored and fromitive committed Nov 28, 2024
1 parent e8ab2dc commit 8c4e281
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
3 changes: 2 additions & 1 deletion android/app/src/main/res/layout/dialog_alert.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

Expand Down Expand Up @@ -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" />

Expand Down Expand Up @@ -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" />

Expand Down Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

Expand Down Expand Up @@ -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" />

Expand Down Expand Up @@ -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" />

Expand Down Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 8c4e281

Please sign in to comment.