fix(creator): 라이브 다시듣기 item 표시를 보정한다

This commit is contained in:
2026-06-18 15:21:32 +09:00
parent efac753f83
commit 7db7fdffdf
2 changed files with 21 additions and 1 deletions

View File

@@ -1,8 +1,10 @@
package kr.co.vividnext.sodalive.v2.creator.channel.live.ui
import android.graphics.Outline
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.ViewOutlineProvider
import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView
import kr.co.vividnext.sodalive.R
@@ -42,6 +44,21 @@ class CreatorChannelLiveReplayAdapter(
private val onReplayClick: (CreatorChannelLiveReplayUiModel) -> Unit
) : RecyclerView.ViewHolder(binding.root) {
init {
binding.layoutCreatorChannelLiveReplayThumbnail.clipToOutline = true
binding.layoutCreatorChannelLiveReplayThumbnail.outlineProvider = object : ViewOutlineProvider() {
override fun getOutline(view: View, outline: Outline) {
outline.setRoundRect(
0,
0,
view.width,
view.height,
view.resources.getDimension(R.dimen.radius_14)
)
}
}
}
fun bind(item: CreatorChannelLiveReplayUiModel) = with(binding) {
ivCreatorChannelLiveReplayThumbnail.loadUrl(item.imageUrl)
tvCreatorChannelLiveReplayTitle.text = item.title