fix(creator): 라이브 다시듣기 item 표시를 보정한다
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user