feat(creator): 채널 홈 최신 오디오 카드를 추가한다

This commit is contained in:
2026-06-15 13:20:47 +09:00
parent 74687daf28
commit d4b3a9a8a4
2 changed files with 111 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package kr.co.vividnext.sodalive.v2.creator.channel.ui
import android.content.Context
import android.graphics.Outline
import android.util.AttributeSet
import android.view.View
import android.view.ViewOutlineProvider
import android.widget.FrameLayout
import kr.co.vividnext.sodalive.R
class CreatorChannelLatestAudioThumbnailView @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
defStyleAttr: Int = 0
) : FrameLayout(context, attrs, defStyleAttr) {
override fun onFinishInflate() {
super.onFinishInflate()
clipToOutline = true
outlineProvider = object : ViewOutlineProvider() {
override fun getOutline(view: View, outline: Outline) {
outline.setRoundRect(0, 0, view.width, view.height, resources.getDimension(R.dimen.radius_14))
}
}
}
}

View File

@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingHorizontal="@dimen/spacing_14"
android:paddingTop="@dimen/spacing_8">
<LinearLayout
android:id="@+id/layout_latest_audio_card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/bg_feed_card"
android:baselineAligned="false"
android:gravity="center_vertical"
android:orientation="horizontal"
android:padding="@dimen/spacing_14">
<kr.co.vividnext.sodalive.v2.creator.channel.ui.CreatorChannelLatestAudioThumbnailView
android:layout_width="88dp"
android:layout_height="88dp"
android:background="@drawable/bg_audio_content_card_thumbnail">
<ImageView
android:id="@+id/iv_latest_audio_thumbnail"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:contentDescription="@null"
android:scaleType="centerCrop"
tools:src="@drawable/ic_launcher_background" />
<ImageView
android:id="@+id/iv_latest_audio_point_tag"
android:layout_width="@dimen/spacing_24"
android:layout_height="@dimen/spacing_24"
android:layout_gravity="bottom|start"
android:contentDescription="@null"
android:src="@drawable/ic_content_tag_point" />
</kr.co.vividnext.sodalive.v2.creator.channel.ui.CreatorChannelLatestAudioThumbnailView>
<LinearLayout
android:layout_width="0dp"
android:layout_height="88dp"
android:layout_marginStart="@dimen/spacing_14"
android:orientation="vertical"
android:gravity="center_vertical"
android:layout_weight="1">
<TextView
android:id="@+id/tv_latest_audio_new_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/pattaya_regular"
android:includeFontPadding="false"
android:text="New"
android:textColor="@color/soda_400"
android:textSize="14sp"
tools:ignore="HardcodedText" />
<TextView
android:id="@+id/tv_latest_audio_title"
style="@style/Typography.Body2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="2"
android:textColor="@color/white"
tools:text="콘텐츠 이름이 한 줄 콘텐츠 이름이 한..." />
<TextView
android:id="@+id/tv_latest_audio_duration"
style="@style/Typography.Body6"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="1"
android:textColor="@color/gray_500"
tools:text="1:43:25" />
</LinearLayout>
</LinearLayout>
</LinearLayout>