라이브 상세 - 제목 왼쪽에 19금 표시 추가

This commit is contained in:
klaus 2023-08-21 04:08:37 +09:00
parent b8d11d2276
commit f0e841ffbe
12 changed files with 47 additions and 19 deletions

View File

@ -558,7 +558,7 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
}
viewModel.roomInfoLiveData.observe(this) { response ->
binding.iv19.visibility = if (response.isAdult) {
binding.tv19.visibility = if (response.isAdult) {
View.VISIBLE
} else {
View.GONE

View File

@ -11,6 +11,7 @@ data class GetRoomDetailResponse(
@SerializedName("title") val title: String,
@SerializedName("notice") val notice: String,
@SerializedName("isPaid") val isPaid: Boolean,
@SerializedName("isAdult") val isAdult: Boolean,
@SerializedName("isPrivateRoom") val isPrivateRoom: Boolean,
@SerializedName("password") val password: Int?,
@SerializedName("tags") val tags: List<String>,

View File

@ -84,6 +84,12 @@ class LiveRoomDetailFragment(
@SuppressLint("SetTextI18n", "NotifyDataSetChanged")
private fun setRoomDetail(response: GetRoomDetailResponse) {
binding.tv19.visibility = if (response.isAdult) {
View.VISIBLE
} else {
View.GONE
}
binding.tvTitle.text = response.title
binding.tvDate.text = response.beginDateTime

View File

@ -27,7 +27,7 @@
android:textSize="18.3sp"
app:drawableStartCompat="@drawable/ic_back"
tools:ignore="RelativeOverlap"
tools:text="바로, 상담 가능한 요즘친구" />
tools:text="바로, 상담 가능한 크리에이터" />
<ImageView
android:id="@+id/iv_menu"

View File

@ -151,7 +151,7 @@
android:layout_marginHorizontal="26.7dp"
android:layout_marginTop="13.3dp"
android:fontFamily="@font/gmarket_sans_medium"
android:text="- 충전된 캔의 유효기간은 충전 후 5년 입니다.\n- 결제 취소는 결제 후 7일 이내에만 할 수 있습니다.\n 단, 캔의 일부를 사용하면 결제 취소할 수 없습니다.\n- 광고성 이벤트 등 회사가 무료로 지급한 \n포인트는 환불되지 않습니다.\n- 자세한 내용은 요즘 이용약관에서 확인할 수 있습니다."
android:text="- 충전된 캔의 유효기간은 충전 후 5년 입니다.\n- 결제 취소는 결제 후 7일 이내에만 할 수 있습니다.\n 단, 캔의 일부를 사용하면 결제 취소할 수 없습니다.\n- 광고성 이벤트 등 회사가 무료로 지급한 \n포인트는 환불되지 않습니다.\n- 자세한 내용은 소다라이브 이용약관에서 확인할 수 있습니다."
android:textColor="@color/color_777777"
android:textSize="12sp" />
</LinearLayout>

View File

@ -58,7 +58,7 @@
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_medium"
android:lineSpacingExtra="5.3sp"
android:text="요즘친구"
android:text="크리에이터"
android:textColor="@color/color_777777"
android:textSize="14.7sp" />

View File

@ -127,13 +127,16 @@
android:layout_marginTop="10.7dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/iv_19"
<TextView
android:id="@+id/tv_19"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:contentDescription="@null"
android:layout_marginEnd="5.3dp"
android:src="@drawable/ic_19"
android:background="@drawable/bg_round_corner_2_6_601d14"
android:paddingHorizontal="5.3dp"
android:paddingVertical="3.3dp"
android:text="19"
android:textColor="@color/color_e33621"
android:visibility="gone" />
<TextView

View File

@ -19,7 +19,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="바로, 상담 가능한 요즘친구" />
tools:text="바로, 상담 가능한 크리에이터" />
<LinearLayout
android:layout_width="match_parent"

View File

@ -26,7 +26,7 @@
android:fontFamily="@font/gmarket_sans_medium"
android:textColor="@color/color_eeeeee"
android:textSize="14.7sp"
tools:text="요즘 App 오픈 관련 공지사항입니다." />
tools:text="소다라이브 App 오픈 관련 공지사항입니다." />
<TextView
android:id="@+id/tv_date"

View File

@ -27,7 +27,7 @@
android:textSize="18.3sp"
app:drawableStartCompat="@drawable/ic_back"
tools:ignore="RelativeOverlap"
tools:text="바로, 상담 가능한 요즘친구" />
tools:text="바로, 상담 가능한 크리에이터" />
<ImageView
android:id="@+id/iv_menu"

View File

@ -29,16 +29,34 @@
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:layout_marginTop="6.7dp"
android:fontFamily="@font/gmarket_sans_bold"
android:textColor="@color/color_eeeeee"
android:textSize="18.3sp"
tools:text="🧸여자들이 좋아하는 남자 스타일은?" />
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="19"
android:textColor="@color/color_e33621"
android:visibility="gone" />
<TextView
android:id="@+id/tv_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/gmarket_sans_bold"
android:textColor="@color/color_eeeeee"
android:textSize="18.3sp"
tools:text="🧸여자들이 좋아하는 남자 스타일은?" />
</LinearLayout>
<RelativeLayout
android:id="@+id/rl_date_and_can"
@ -254,8 +272,8 @@
android:id="@+id/tv_modify"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:layout_marginStart="13.3dp"
android:layout_weight="1"
android:background="@drawable/bg_round_corner_10_transparent_9970ff"
android:fontFamily="@font/gmarket_sans_bold"
android:gravity="center"

View File

@ -19,7 +19,7 @@
android:fontFamily="@font/gmarket_sans_medium"
android:textColor="@color/color_eeeeee"
android:textSize="14.7sp"
tools:text="요즘 App 오픈 관련 공지사항입니다." />
tools:text="소다라이브 App 오픈 관련 공지사항입니다." />
<TextView
android:id="@+id/tv_date"