라이브 방 - 19금 방인 경우 제목 왼쪽에 19 표시
This commit is contained in:
parent
bb7476f640
commit
01512abaf0
|
@ -558,6 +558,12 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
|||
}
|
||||
|
||||
viewModel.roomInfoLiveData.observe(this) { response ->
|
||||
binding.iv19.visibility = if (response.isAdult) {
|
||||
View.VISIBLE
|
||||
} else {
|
||||
View.GONE
|
||||
}
|
||||
|
||||
binding.tvTitle.text = response.title
|
||||
binding.ivCover.load(response.coverImageUrl) {
|
||||
crossfade(true)
|
||||
|
|
|
@ -14,6 +14,7 @@ data class GetRoomInfoResponse(
|
|||
@SerializedName("creatorNickname") val creatorNickname: String,
|
||||
@SerializedName("creatorProfileUrl") val creatorProfileUrl: String,
|
||||
@SerializedName("isFollowing") val isFollowing: Boolean,
|
||||
@SerializedName("isAdult") val isAdult: Boolean,
|
||||
@SerializedName("participantsCount") val participantsCount: Int,
|
||||
@SerializedName("totalAvailableParticipantsCount") val totalAvailableParticipantsCount: Int,
|
||||
@SerializedName("speakerList") val speakerList: List<LiveRoomMember>,
|
||||
|
|
|
@ -120,19 +120,34 @@
|
|||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
|
||||
<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="10.7dp"
|
||||
android:ellipsize="end"
|
||||
android:fontFamily="@font/gmarket_sans_bold"
|
||||
android:lineSpacingExtra="3.3sp"
|
||||
android:maxLines="1"
|
||||
android:paddingHorizontal="13.3dp"
|
||||
android:textColor="@color/color_eeeeee"
|
||||
android:textSize="15.3sp"
|
||||
tools:text="🧸여자들이 좋아하는 남자 스타일은?" />
|
||||
android:orientation="horizontal">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_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:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:ellipsize="end"
|
||||
android:fontFamily="@font/gmarket_sans_bold"
|
||||
android:lineSpacingExtra="3.3sp"
|
||||
android:maxLines="1"
|
||||
android:textColor="@color/color_eeeeee"
|
||||
android:textSize="15.3sp"
|
||||
tools:text="🧸여자들이 좋아하는 남자 스타일은?" />
|
||||
</LinearLayout>
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
Loading…
Reference in New Issue