라이브 상세, 라이브 룸 - 19금 표시를 이모지로 변경
This commit is contained in:
@@ -742,14 +742,12 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
|||||||
}
|
}
|
||||||
|
|
||||||
viewModel.roomInfoLiveData.observe(this) { response ->
|
viewModel.roomInfoLiveData.observe(this) { response ->
|
||||||
binding.tv19.visibility = if (response.isAdult) {
|
binding.tvTitle.text = if (response.isAdult) {
|
||||||
View.VISIBLE
|
"\uD83D\uDD1E ${response.title}"
|
||||||
} else {
|
} else {
|
||||||
View.GONE
|
response.title
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.tvTitle.text = response.title
|
|
||||||
|
|
||||||
binding.flDonation.visibility =
|
binding.flDonation.visibility =
|
||||||
if (response.creatorId != SharedPreferenceManager.userId) {
|
if (response.creatorId != SharedPreferenceManager.userId) {
|
||||||
View.VISIBLE
|
View.VISIBLE
|
||||||
|
|||||||
@@ -122,13 +122,11 @@ class LiveRoomDetailFragment(
|
|||||||
val locale = Locale(LanguageManager.getEffectiveLanguage(requireContext()))
|
val locale = Locale(LanguageManager.getEffectiveLanguage(requireContext()))
|
||||||
val wrappedContext = LocaleHelper.wrap(requireContext())
|
val wrappedContext = LocaleHelper.wrap(requireContext())
|
||||||
|
|
||||||
binding.tv19.visibility = if (response.isAdult) {
|
binding.tvTitle.text = if (response.isAdult) {
|
||||||
View.VISIBLE
|
"\uD83D\uDD1E ${response.title}"
|
||||||
} else {
|
} else {
|
||||||
View.GONE
|
response.title
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.tvTitle.text = response.title
|
|
||||||
binding.tvDate.text = response.beginDateTimeUtc.convertDateFormat(
|
binding.tvDate.text = response.beginDateTimeUtc.convertDateFormat(
|
||||||
from = "yyyy-MM-dd'T'HH:mm:ss",
|
from = "yyyy-MM-dd'T'HH:mm:ss",
|
||||||
to = wrappedContext.getString(R.string.screen_live_room_detail_date_format),
|
to = wrappedContext.getString(R.string.screen_live_room_detail_date_format),
|
||||||
|
|||||||
@@ -336,25 +336,6 @@
|
|||||||
android:layout_toEndOf="@+id/rl_creator_profile"
|
android:layout_toEndOf="@+id/rl_creator_profile"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
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
|
<TextView
|
||||||
android:id="@+id/tv_title"
|
android:id="@+id/tv_title"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
@@ -365,7 +346,6 @@
|
|||||||
android:textColor="@color/color_eeeeee"
|
android:textColor="@color/color_eeeeee"
|
||||||
android:textSize="12sp"
|
android:textSize="12sp"
|
||||||
tools:text="오늘 라이브 방송은ㅇㄹ너ㅏㅣㅇㄴ럴ㄴ아ㅣㄴㅇ러ㅏㅣ" />
|
tools:text="오늘 라이브 방송은ㅇㄹ너ㅏㅣㅇㄴ럴ㄴ아ㅣㄴㅇ러ㅏㅣ" />
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
|||||||
@@ -29,35 +29,16 @@
|
|||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/iv_close">
|
app:layout_constraintTop_toBottomOf="@+id/iv_close">
|
||||||
|
|
||||||
<LinearLayout
|
|
||||||
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
|
<TextView
|
||||||
android:id="@+id/tv_title"
|
android:id="@+id/tv_title"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginHorizontal="13.3dp"
|
||||||
|
android:layout_marginTop="6.7dp"
|
||||||
android:fontFamily="@font/bold"
|
android:fontFamily="@font/bold"
|
||||||
android:textColor="@color/color_eeeeee"
|
android:textColor="@color/color_eeeeee"
|
||||||
android:textSize="18.3sp"
|
android:textSize="18.3sp"
|
||||||
tools:text="🧸여자들이 좋아하는 남자 스타일은?" />
|
tools:text="🧸여자들이 좋아하는 남자 스타일은?" />
|
||||||
</LinearLayout>
|
|
||||||
|
|
||||||
<RelativeLayout
|
<RelativeLayout
|
||||||
android:id="@+id/rl_date_and_can"
|
android:id="@+id/rl_date_and_can"
|
||||||
|
|||||||
Reference in New Issue
Block a user