From 7db7fdffdffbe8bec28acf4de033ab0768700bd1 Mon Sep 17 00:00:00 2001 From: klaus Date: Thu, 18 Jun 2026 15:21:32 +0900 Subject: [PATCH] =?UTF-8?q?fix(creator):=20=EB=9D=BC=EC=9D=B4=EB=B8=8C=20?= =?UTF-8?q?=EB=8B=A4=EC=8B=9C=EB=93=A3=EA=B8=B0=20item=20=ED=91=9C?= =?UTF-8?q?=EC=8B=9C=EB=A5=BC=20=EB=B3=B4=EC=A0=95=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../live/ui/CreatorChannelLiveReplayAdapter.kt | 17 +++++++++++++++++ .../layout/item_creator_channel_live_replay.xml | 5 ++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/live/ui/CreatorChannelLiveReplayAdapter.kt b/app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/live/ui/CreatorChannelLiveReplayAdapter.kt index 1094278e..31f677a0 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/live/ui/CreatorChannelLiveReplayAdapter.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/live/ui/CreatorChannelLiveReplayAdapter.kt @@ -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 diff --git a/app/src/main/res/layout/item_creator_channel_live_replay.xml b/app/src/main/res/layout/item_creator_channel_live_replay.xml index 4414936e..477234b5 100644 --- a/app/src/main/res/layout/item_creator_channel_live_replay.xml +++ b/app/src/main/res/layout/item_creator_channel_live_replay.xml @@ -3,6 +3,7 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="88dp" + android:layout_marginBottom="@dimen/spacing_8" android:baselineAligned="false" android:gravity="center_vertical" android:orientation="horizontal"> @@ -11,7 +12,9 @@ android:id="@+id/layout_creator_channel_live_replay_thumbnail" android:layout_width="88dp" android:layout_height="88dp" - android:background="@drawable/bg_audio_content_card_thumbnail"> + android:background="@drawable/bg_audio_content_card_thumbnail" + android:clipToOutline="true" + android:outlineProvider="background">