feat: 메인 라이브

- 최근 종료한 라이브, 라이브 다시 듣기, 라이브 예약 아이템 사이즈 조절
This commit is contained in:
2025-07-19 02:17:47 +09:00
parent f1164bbd30
commit d7cc874684
8 changed files with 148 additions and 82 deletions

View File

@@ -221,7 +221,7 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
.pager
.layoutParams as LinearLayout.LayoutParams
val pagerWidth = screenWidth.toDouble() - 26.7f.dpToPx()
val pagerWidth = screenWidth.toDouble()
val pagerHeight = (pagerWidth * 0.53).roundToInt()
layoutParams.width = pagerWidth.roundToInt()
layoutParams.height = pagerHeight
@@ -388,7 +388,7 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
outRect.right = 8f.dpToPx().toInt()
}
liveRecommendChannelAdapter.itemCount - 1 -> {
adapter.itemCount - 1 -> {
outRect.left = 8f.dpToPx().toInt()
outRect.right = 0
}

View File

@@ -39,6 +39,12 @@ class LiveNowAdapter(
binding.tvTitle.text = item.title
binding.tvNickname.text = item.creatorNickname
binding.ivLock.visibility = if (item.isPrivateRoom) {
View.VISIBLE
} else {
View.GONE
}
if (item.price > 0) {
binding.llCan.visibility = View.VISIBLE
binding.tvCan.text = item.price.moneyFormat()

View File

@@ -115,6 +115,12 @@ class LiveReservationAdapter(
binding.tvCan.text = item.price.moneyFormat()
}
binding.ivLock.visibility = if (item.isPrivateRoom) {
View.VISIBLE
} else {
View.GONE
}
binding.root.setOnClickListener { onClick(item) }
}
}
@@ -158,6 +164,12 @@ class LiveReservationAdapter(
binding.tvCan.text = item.price.moneyFormat()
}
binding.ivLock.visibility = if (item.isPrivateRoom) {
View.VISIBLE
} else {
View.GONE
}
binding.root.setOnClickListener { onClick(item) }
}
}