라이브 상세, 라이브 룸 - 19금 표시를 이모지로 변경

This commit is contained in:
2026-02-03 14:19:06 +09:00
parent 94b48cef84
commit 84803c171c
4 changed files with 20 additions and 63 deletions

View File

@@ -742,14 +742,12 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
}
viewModel.roomInfoLiveData.observe(this) { response ->
binding.tv19.visibility = if (response.isAdult) {
View.VISIBLE
binding.tvTitle.text = if (response.isAdult) {
"\uD83D\uDD1E ${response.title}"
} else {
View.GONE
response.title
}
binding.tvTitle.text = response.title
binding.flDonation.visibility =
if (response.creatorId != SharedPreferenceManager.userId) {
View.VISIBLE

View File

@@ -122,13 +122,11 @@ class LiveRoomDetailFragment(
val locale = Locale(LanguageManager.getEffectiveLanguage(requireContext()))
val wrappedContext = LocaleHelper.wrap(requireContext())
binding.tv19.visibility = if (response.isAdult) {
View.VISIBLE
binding.tvTitle.text = if (response.isAdult) {
"\uD83D\uDD1E ${response.title}"
} else {
View.GONE
response.title
}
binding.tvTitle.text = response.title
binding.tvDate.text = response.beginDateTimeUtc.convertDateFormat(
from = "yyyy-MM-dd'T'HH:mm:ss",
to = wrappedContext.getString(R.string.screen_live_room_detail_date_format),

View File

@@ -336,36 +336,16 @@
android:layout_toEndOf="@+id/rl_creator_profile"
android:orientation="vertical">
<LinearLayout
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_19"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="2.7dp"
android:background="@drawable/bg_circle_ea3a25"
android:fontFamily="@font/bold"
android:padding="2.7dp"
android:text="@string/screen_live_room_age_badge"
android:textColor="@color/white"
android:textSize="8sp"
tools:ignore="SmallSp" />
<TextView
android:id="@+id/tv_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:fontFamily="@font/bold"
android:lines="1"
android:textColor="@color/color_eeeeee"
android:textSize="12sp"
tools:text="오늘 라이브 방송은ㅇㄹ너ㅏㅣㅇㄴ럴ㄴ아ㅣㄴㅇ러ㅏㅣ" />
</LinearLayout>
android:ellipsize="end"
android:fontFamily="@font/bold"
android:lines="1"
android:textColor="@color/color_eeeeee"
android:textSize="12sp"
tools:text="오늘 라이브 방송은ㅇㄹ너ㅏㅣㅇㄴ럴ㄴ아ㅣㄴㅇ러ㅏㅣ" />
<LinearLayout
android:layout_width="wrap_content"

View File

@@ -29,35 +29,16 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/iv_close">
<LinearLayout
<TextView
android:id="@+id/tv_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginHorizontal="13.3dp"
android:layout_marginTop="6.7dp"
android:orientation="horizontal">
<TextView
android:id="@+id/tv_19"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="5.3dp"
android:background="@drawable/bg_round_corner_2_6_601d14"
android:paddingHorizontal="5.3dp"
android:paddingVertical="3.3dp"
android:text="@string/screen_live_room_age_badge"
android:textColor="@color/color_e33621"
android:visibility="gone"
android:fontFamily="@font/medium" />
<TextView
android:id="@+id/tv_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/bold"
android:textColor="@color/color_eeeeee"
android:textSize="18.3sp"
tools:text="🧸여자들이 좋아하는 남자 스타일은?" />
</LinearLayout>
android:fontFamily="@font/bold"
android:textColor="@color/color_eeeeee"
android:textSize="18.3sp"
tools:text="🧸여자들이 좋아하는 남자 스타일은?" />
<RelativeLayout
android:id="@+id/rl_date_and_can"