feat: 크리에이터 채널 - 콘텐츠 리스트

- 포인트 사용 가능 여부 표시
This commit is contained in:
2025-06-10 14:53:03 +09:00
parent ea766afba9
commit 74585bfb7f
6 changed files with 34 additions and 2 deletions

View File

@@ -28,6 +28,12 @@ class AudioContentAdapter(
View.GONE View.GONE
} }
binding.tvPoint.visibility = if (item.isPointAvailable) {
View.VISIBLE
} else {
View.GONE
}
binding.ivCover.load(item.coverImageUrl) { binding.ivCover.load(item.coverImageUrl) {
crossfade(true) crossfade(true)
placeholder(R.drawable.bg_placeholder) placeholder(R.drawable.bg_placeholder)

View File

@@ -96,7 +96,7 @@ class AudioContentNewAllAdapter(
override fun getItemCount() = items.size override fun getItemCount() = items.size
override fun onBindViewHolder(holder: AudioContentNewAllAdapter.ViewHolder, position: Int) { override fun onBindViewHolder(holder: ViewHolder, position: Int) {
holder.bind(items[position]) holder.bind(items[position])
} }

View File

@@ -95,7 +95,8 @@ data class GetAudioContentListItem(
@SerializedName("isScheduledToOpen") val isScheduledToOpen: Boolean, @SerializedName("isScheduledToOpen") val isScheduledToOpen: Boolean,
@SerializedName("isRented") val isRented: Boolean, @SerializedName("isRented") val isRented: Boolean,
@SerializedName("isOwned") val isOwned: Boolean, @SerializedName("isOwned") val isOwned: Boolean,
@SerializedName("isSoldOut") val isSoldOut: Boolean @SerializedName("isSoldOut") val isSoldOut: Boolean,
@SerializedName("isPointAvailable") val isPointAvailable: Boolean
) )
@Keep @Keep

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/color_7849bc" />
<corners android:radius="2.6dp" />
<stroke
android:width="1dp"
android:color="@color/color_7849bc" />
</shape>

View File

@@ -69,6 +69,21 @@
tools:ignore="SmallSp" tools:ignore="SmallSp"
tools:text="00:30:20" /> tools:text="00:30:20" />
<TextView
android:id="@+id/tv_point"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:background="@drawable/bg_round_corner_2_6_7849bc"
android:fontFamily="@font/gmarket_sans_medium"
android:gravity="center"
android:padding="2.6dp"
android:text="포인트"
android:textColor="@color/color_bf98ff"
android:textSize="8sp"
android:visibility="gone"
tools:ignore="SmallSp" />
<ImageView <ImageView
android:id="@+id/iv_pin" android:id="@+id/iv_pin"
android:layout_width="13.3dp" android:layout_width="13.3dp"

View File

@@ -129,4 +129,6 @@
<color name="color_ccffffff">#CCFFFFFF</color> <color name="color_ccffffff">#CCFFFFFF</color>
<color name="color_cc777777">#CC777777</color> <color name="color_cc777777">#CC777777</color>
<color name="color_ec3aa6">#EC3AA6</color> <color name="color_ec3aa6">#EC3AA6</color>
<color name="color_7849bc">#7849BC</color>
<color name="color_bf98ff">#BF98FF</color>
</resources> </resources>