fix(creator): 라이브 다시듣기 item 표시를 보정한다
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
package kr.co.vividnext.sodalive.v2.creator.channel.live.ui
|
package kr.co.vividnext.sodalive.v2.creator.channel.live.ui
|
||||||
|
|
||||||
|
import android.graphics.Outline
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.View
|
import android.view.View
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
|
import android.view.ViewOutlineProvider
|
||||||
import androidx.core.view.isVisible
|
import androidx.core.view.isVisible
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import kr.co.vividnext.sodalive.R
|
import kr.co.vividnext.sodalive.R
|
||||||
@@ -42,6 +44,21 @@ class CreatorChannelLiveReplayAdapter(
|
|||||||
private val onReplayClick: (CreatorChannelLiveReplayUiModel) -> Unit
|
private val onReplayClick: (CreatorChannelLiveReplayUiModel) -> Unit
|
||||||
) : RecyclerView.ViewHolder(binding.root) {
|
) : 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) {
|
fun bind(item: CreatorChannelLiveReplayUiModel) = with(binding) {
|
||||||
ivCreatorChannelLiveReplayThumbnail.loadUrl(item.imageUrl)
|
ivCreatorChannelLiveReplayThumbnail.loadUrl(item.imageUrl)
|
||||||
tvCreatorChannelLiveReplayTitle.text = item.title
|
tvCreatorChannelLiveReplayTitle.text = item.title
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="88dp"
|
android:layout_height="88dp"
|
||||||
|
android:layout_marginBottom="@dimen/spacing_8"
|
||||||
android:baselineAligned="false"
|
android:baselineAligned="false"
|
||||||
android:gravity="center_vertical"
|
android:gravity="center_vertical"
|
||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
@@ -11,7 +12,9 @@
|
|||||||
android:id="@+id/layout_creator_channel_live_replay_thumbnail"
|
android:id="@+id/layout_creator_channel_live_replay_thumbnail"
|
||||||
android:layout_width="88dp"
|
android:layout_width="88dp"
|
||||||
android:layout_height="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">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/iv_creator_channel_live_replay_thumbnail"
|
android:id="@+id/iv_creator_channel_live_replay_thumbnail"
|
||||||
|
|||||||
Reference in New Issue
Block a user