라이브 후원 - 비밀후원 체크박스
- 체크박스가 선택된 이미지로 변경되지 않던 버그 수정
This commit is contained in:
@@ -55,7 +55,7 @@ class LiveRoomDonationDialog(
|
||||
|
||||
if (can > 0) {
|
||||
bottomSheetDialog.dismiss()
|
||||
onClickDonation(can, message, dialogView.chkSecret.isChecked)
|
||||
onClickDonation(can, message, dialogView.tvSecret.isSelected)
|
||||
} else {
|
||||
Toast.makeText(
|
||||
activity,
|
||||
@@ -74,13 +74,16 @@ class LiveRoomDonationDialog(
|
||||
|
||||
if (isLiveDonation) {
|
||||
dialogView.rlSecret.visibility = View.VISIBLE
|
||||
dialogView.chkSecret.setOnCheckedChangeListener { _, isSecret ->
|
||||
dialogView.etDonationMessage.hint = if (isSecret) {
|
||||
dialogView.tvSecret.setOnClickListener {
|
||||
val isSelected = dialogView.tvSecret.isSelected
|
||||
dialogView.tvSecret.isSelected = !isSelected
|
||||
dialogView.etDonationMessage.hint = if (!isSelected) {
|
||||
"함께 보낼 비밀 메시지 입력(최대 200자)"
|
||||
} else {
|
||||
"함께 보낼 메시지 입력(최대 200자)"
|
||||
}
|
||||
}
|
||||
dialogView.tvSecret.isSelected = false
|
||||
} else {
|
||||
dialogView.rlSecret.visibility = View.GONE
|
||||
}
|
||||
|
@@ -78,16 +78,19 @@
|
||||
android:layout_marginBottom="13.3dp"
|
||||
android:visibility="gone">
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/chk_secret"
|
||||
<TextView
|
||||
android:id="@+id/tv_secret"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentEnd="true"
|
||||
android:button="@drawable/ic_select_square"
|
||||
android:button="@null"
|
||||
android:drawablePadding="8dp"
|
||||
android:fontFamily="@font/gmarket_sans_medium"
|
||||
android:gravity="center"
|
||||
android:paddingHorizontal="8dp"
|
||||
android:text="비밀후원"
|
||||
android:textColor="@color/color_check_secret" />
|
||||
android:textColor="@color/color_check_secret"
|
||||
app:drawableStartCompat="@drawable/ic_select_square" />
|
||||
</RelativeLayout>
|
||||
|
||||
<EditText
|
||||
|
Reference in New Issue
Block a user