라이브

- 최대 스피커 수 방장 포함 6명으로 변경
This commit is contained in:
klaus 2024-09-20 16:10:48 +09:00
parent 0709c68653
commit a191e295da
4 changed files with 13 additions and 14 deletions

View File

@ -321,7 +321,7 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
)
},
onClickInviteSpeaker = { memberId ->
if (speakerListAdapter.itemCount <= 4) {
if (speakerListAdapter.itemCount <= 5) {
inviteSpeaker(memberId)
} else {
showToast("스피커 정원이 초과했습니다.")
@ -404,7 +404,7 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
)
},
onClickInviteSpeaker = {
if (speakerListAdapter.itemCount <= 4) {
if (speakerListAdapter.itemCount <= 5) {
inviteSpeaker(it)
} else {
showToast("스피커 정원이 초과했습니다.")
@ -1129,8 +1129,8 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
) {
super.getItemOffsets(outRect, view, parent, state)
outRect.left = 4f.dpToPx().toInt()
outRect.right = 4f.dpToPx().toInt()
outRect.left = 2f.dpToPx().toInt()
outRect.right = 2f.dpToPx().toInt()
}
})
rvSpeakers.adapter = speakerListAdapter

View File

@ -35,8 +35,8 @@ class LiveRoomProfileListAdapter : RecyclerView.Adapter<LiveRoomProfileListAdapt
}
val ivMuteLp = binding.ivMute.layoutParams
ivMuteLp.width = 30f.dpToPx().toInt()
ivMuteLp.height = 30f.dpToPx().toInt()
ivMuteLp.width = 28f.dpToPx().toInt()
ivMuteLp.height = 28f.dpToPx().toInt()
binding.ivMute.layoutParams = ivMuteLp
}

View File

@ -271,7 +271,7 @@
android:layout_marginTop="12dp">
<RelativeLayout
android:layout_width="180dp"
android:layout_width="166dp"
android:layout_height="wrap_content"
android:background="@drawable/bg_round_corner_5_3_transparent_bbbbbb"
android:padding="5.3dp">

View File

@ -1,19 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="30dp"
android:layout_width="28dp"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical">
<RelativeLayout
android:layout_width="30dp"
android:layout_height="30dp">
android:layout_width="28dp"
android:layout_height="28dp">
<ImageView
android:id="@+id/iv_profile"
android:layout_width="26.7dp"
android:layout_height="26.7dp"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_centerInParent="true"
android:contentDescription="@null"
tools:src="@mipmap/ic_launcher" />
@ -42,8 +42,7 @@
android:fontFamily="@font/gmarket_sans_medium"
android:lines="1"
android:textColor="@color/color_777777"
android:textSize="10.7sp"
android:textSize="8.7sp"
tools:ignore="SmallSp"
tools:text="932sld23" />
</LinearLayout>