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