라이브 방이 19금일 때 제목 앞에 🔞 대신 방패(ic_shield)가 표시되도록 수정
This commit is contained in:
@@ -763,12 +763,14 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
}
|
||||
|
||||
viewModel.roomInfoLiveData.observe(this) { response ->
|
||||
binding.tvTitle.text = if (response.isAdult) {
|
||||
"\uD83D\uDD1E ${response.title}"
|
||||
binding.ivShield.visibility = if (response.isAdult) {
|
||||
View.VISIBLE
|
||||
} else {
|
||||
response.title
|
||||
View.GONE
|
||||
}
|
||||
|
||||
binding.tvTitle.text = response.title
|
||||
|
||||
binding.flDonation.visibility =
|
||||
if (response.creatorId != SharedPreferenceManager.userId) {
|
||||
View.VISIBLE
|
||||
|
||||
@@ -122,11 +122,14 @@ class LiveRoomDetailFragment(
|
||||
val locale = Locale(LanguageManager.getEffectiveLanguage(requireContext()))
|
||||
val wrappedContext = LocaleHelper.wrap(requireContext())
|
||||
|
||||
binding.tvTitle.text = if (response.isAdult) {
|
||||
"\uD83D\uDD1E ${response.title}"
|
||||
binding.tvTitle.text = response.title
|
||||
|
||||
binding.ivShield.visibility = if (response.isAdult) {
|
||||
View.VISIBLE
|
||||
} else {
|
||||
response.title
|
||||
View.GONE
|
||||
}
|
||||
|
||||
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),
|
||||
|
||||
@@ -336,6 +336,21 @@
|
||||
android:layout_toEndOf="@+id/rl_creator_profile"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
tools:ignore="UseCompoundDrawables">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_shield"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@drawable/ic_shield" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
@@ -343,9 +358,11 @@
|
||||
android:ellipsize="end"
|
||||
android:fontFamily="@font/bold"
|
||||
android:lines="1"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/color_eeeeee"
|
||||
android:textSize="12sp"
|
||||
tools:text="오늘 라이브 방송은ㅇㄹ너ㅏㅣㅇㄴ럴ㄴ아ㅣㄴㅇ러ㅏㅣ" />
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_creator_nickname"
|
||||
|
||||
@@ -27,18 +27,37 @@
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
|
||||
app:layout_constraintTop_toBottomOf="@+id/iv_close">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="13.3dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal"
|
||||
tools:ignore="UseCompoundDrawables">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_shield"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginEnd="4dp"
|
||||
android:contentDescription="@null"
|
||||
android:src="@drawable/ic_shield" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="6.7dp"
|
||||
android:ellipsize="end"
|
||||
android:fontFamily="@font/bold"
|
||||
android:maxLines="2"
|
||||
android:textColor="@color/color_eeeeee"
|
||||
android:textSize="18.3sp"
|
||||
tools:text="🧸여자들이 좋아하는 남자 스타일은?" />
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_date_and_can"
|
||||
|
||||
Reference in New Issue
Block a user