From 6fbb98ca7beaeb31aa032cbee8508b2493a22726 Mon Sep 17 00:00:00 2001 From: klaus Date: Mon, 22 Jan 2024 16:09:53 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=A0=EB=A3=8C=EB=B0=A9=20=EC=9E=85?= =?UTF-8?q?=EC=9E=A5=20=ED=8C=9D=EC=97=85=20-=20UI=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?-=20=EC=95=8C=EB=A6=BC=20=EB=AC=B8=EA=B5=AC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../explorer/profile/UserProfileActivity.kt | 11 ++-- .../vividnext/sodalive/live/LiveFragment.kt | 11 ++-- .../live/now/all/LiveNowAllActivity.kt | 11 ++-- .../live/room/dialog/LivePaymentDialog.kt | 9 +-- .../main/res/layout/dialog_live_payment.xml | 58 +++++++++---------- 5 files changed, 50 insertions(+), 50 deletions(-) diff --git a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileActivity.kt b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileActivity.kt index f5e3274..aa29ae5 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileActivity.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileActivity.kt @@ -855,7 +855,7 @@ class UserProfileActivity : BaseActivity( val beginDate = beginDateFormat.parse(it.beginDateTime)!! val now = Date() - val dateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault()) + val dateFormat = SimpleDateFormat("yyyy-MM-dd, HH:mm", Locale.getDefault()) val diffTime: Long = now.time - beginDate.time val hours = (diffTime / (1000 * 60 * 60)).toInt() val mins = (diffTime / (1000 * 60)).toInt() % 60 @@ -877,7 +877,7 @@ class UserProfileActivity : BaseActivity( LivePaymentDialog( activity = this, layoutInflater = layoutInflater, - title = "${it.price.moneyFormat()}캔으로 입장", + title = "유료 라이브 입장", startDateTime = if (hours >= 1) { dateFormat.format(beginDate) } else { @@ -888,10 +888,11 @@ class UserProfileActivity : BaseActivity( } else { null }, - desc = if (hours >= 1) { - "라이브를 시작한지 ${hours}시간 ${mins}분 이상 지났습니다. 결제 후 참여하시겠습니까?" + desc = "${it.price}캔을 차감하고\n라이브에 입장 하시겠습니까?", + desc2 = if (hours >= 1) { + "라이브를 시작한 지 ${hours}시간 ${mins}분이 지났습니다. 라이브에 입장 후 30분 이내에 라이브가 종료될 수도 있습니다." } else { - "'${it.title}' 라이브에 참여하기 위해 결제합니다." + null }, confirmButtonTitle = "결제 후 입장", confirmButtonClick = { diff --git a/app/src/main/java/kr/co/vividnext/sodalive/live/LiveFragment.kt b/app/src/main/java/kr/co/vividnext/sodalive/live/LiveFragment.kt index 798180c..c4cd4c7 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/live/LiveFragment.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/live/LiveFragment.kt @@ -702,7 +702,7 @@ class LiveFragment : BaseFragment(FragmentLiveBinding::infl val beginDate = beginDateFormat.parse(it.beginDateTime)!! val now = Date() - val dateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault()) + val dateFormat = SimpleDateFormat("yyyy-MM-dd, HH:mm", Locale.getDefault()) val diffTime: Long = now.time - beginDate.time val hours = (diffTime / (1000 * 60 * 60)).toInt() val mins = (diffTime / (1000 * 60)).toInt() % 60 @@ -726,7 +726,7 @@ class LiveFragment : BaseFragment(FragmentLiveBinding::infl LivePaymentDialog( activity = requireActivity(), layoutInflater = layoutInflater, - title = "${it.price.moneyFormat()}캔으로 입장", + title = "유료 라이브 입장", startDateTime = if (hours >= 1) { dateFormat.format(beginDate) } else { @@ -737,10 +737,11 @@ class LiveFragment : BaseFragment(FragmentLiveBinding::infl } else { null }, - desc = if (hours >= 1) { - "라이브를 시작한지 ${hours}시간 ${mins}분 이상 지났습니다. 결제 후 참여하시겠습니까?" + desc = "${it.price}캔을 차감하고\n라이브에 입장 하시겠습니까?", + desc2 = if (hours >= 1) { + "라이브를 시작한 지 ${hours}시간 ${mins}분이 지났습니다. 라이브에 입장 후 30분 이내에 라이브가 종료될 수도 있습니다." } else { - "'${it.title}' 라이브에 참여하기 위해 결제합니다." + null }, confirmButtonTitle = "결제 후 입장", confirmButtonClick = { diff --git a/app/src/main/java/kr/co/vividnext/sodalive/live/now/all/LiveNowAllActivity.kt b/app/src/main/java/kr/co/vividnext/sodalive/live/now/all/LiveNowAllActivity.kt index d5f3b70..06b0d00 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/live/now/all/LiveNowAllActivity.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/live/now/all/LiveNowAllActivity.kt @@ -164,7 +164,7 @@ class LiveNowAllActivity : BaseActivity( val beginDate = beginDateFormat.parse(it.beginDateTime)!! val now = Date() - val dateFormat = SimpleDateFormat("yyyy-MM-dd HH:mm", Locale.getDefault()) + val dateFormat = SimpleDateFormat("yyyy-MM-dd, HH:mm", Locale.getDefault()) val diffTime: Long = now.time - beginDate.time val hours = (diffTime / (1000 * 60 * 60)).toInt() val mins = (diffTime / (1000 * 60)).toInt() % 60 @@ -186,7 +186,7 @@ class LiveNowAllActivity : BaseActivity( LivePaymentDialog( activity = this, layoutInflater = layoutInflater, - title = "${it.price.moneyFormat()} 캔으로 입장", + title = "유료 라이브 입장", startDateTime = if (hours >= 1) { dateFormat.format(beginDate) } else { @@ -197,10 +197,11 @@ class LiveNowAllActivity : BaseActivity( } else { null }, - desc = if (hours >= 1) { - "라이브를 시작한지 ${hours}시간 ${mins}분 이상 지났습니다. 결제 후 참여하시겠습니까?" + desc = "${it.price.moneyFormat()}캔을 차감하고\n라이브에 입장 하시겠습니까?", + desc2 = if (hours >= 1) { + "라이브를 시작한 지 ${hours}시간 ${mins}분이 지났습니다. 라이브에 입장 후 30분 이내에 라이브가 종료될 수도 있습니다." } else { - "'${it.title}' 라이브에 참여하기 위해 결제합니다." + null }, confirmButtonTitle = "결제 후 입장", confirmButtonClick = { diff --git a/app/src/main/java/kr/co/vividnext/sodalive/live/room/dialog/LivePaymentDialog.kt b/app/src/main/java/kr/co/vividnext/sodalive/live/room/dialog/LivePaymentDialog.kt index 0b86c00..12723ed 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/live/room/dialog/LivePaymentDialog.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/live/room/dialog/LivePaymentDialog.kt @@ -15,6 +15,7 @@ class LivePaymentDialog( layoutInflater: LayoutInflater, title: String, desc: String, + desc2: String? = null, startDateTime: String? = null, nowDateTime: String? = null, confirmButtonTitle: String, @@ -34,11 +35,10 @@ class LivePaymentDialog( alertDialog.window?.setBackgroundDrawable(ColorDrawable(Color.TRANSPARENT)) dialogView.tvTitle.text = title + dialogView.tvDesc.text = desc if (startDateTime != null && nowDateTime != null) { - dialogView.tvDesc.visibility = View.GONE - - dialogView.tvDesc2.text = desc + dialogView.tvDesc2.text = desc2 dialogView.tvNowDate.text = nowDateTime dialogView.tvStartDate.text = startDateTime @@ -47,9 +47,6 @@ class LivePaymentDialog( } else { dialogView.tvDesc2.visibility = View.GONE dialogView.llTimeNotice.visibility = View.GONE - - dialogView.tvDesc.text = desc - dialogView.tvDesc.visibility = View.VISIBLE } dialogView.tvCancel.text = cancelButtonTitle diff --git a/app/src/main/res/layout/dialog_live_payment.xml b/app/src/main/res/layout/dialog_live_payment.xml index 5d04a2f..965b723 100644 --- a/app/src/main/res/layout/dialog_live_payment.xml +++ b/app/src/main/res/layout/dialog_live_payment.xml @@ -17,7 +17,7 @@ android:gravity="center" android:textColor="@color/color_bbbbbb" android:textSize="18.3sp" - tools:text="100캔으로 입장" /> + tools:text="유료라이브 입장" /> + tools:text="OO캔을 차감하고\n라이브에 입장 하시겠습니까?" /> + android:baselineAligned="false" + android:gravity="center" + android:orientation="vertical" + android:paddingHorizontal="26.7dp" + android:paddingVertical="13.3dp" + > + android:orientation="horizontal"> - - - - - + + + + + + tools:text="라이브가 시작한 지 1시간 10분이 지났습니다. 라이브에 입장 후 30분 이내에 라이브가 종료될 수도 있습니다." />