feat: 크리에이터 채널 - 콘텐츠 리스트
- 포인트 사용 가능 여부 표시
This commit is contained in:
		@@ -28,6 +28,12 @@ class AudioContentAdapter(
 | 
			
		||||
                View.GONE
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            binding.tvPoint.visibility = if (item.isPointAvailable) {
 | 
			
		||||
                View.VISIBLE
 | 
			
		||||
            } else {
 | 
			
		||||
                View.GONE
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            binding.ivCover.load(item.coverImageUrl) {
 | 
			
		||||
                crossfade(true)
 | 
			
		||||
                placeholder(R.drawable.bg_placeholder)
 | 
			
		||||
 
 | 
			
		||||
@@ -96,7 +96,7 @@ class AudioContentNewAllAdapter(
 | 
			
		||||
 | 
			
		||||
    override fun getItemCount() = items.size
 | 
			
		||||
 | 
			
		||||
    override fun onBindViewHolder(holder: AudioContentNewAllAdapter.ViewHolder, position: Int) {
 | 
			
		||||
    override fun onBindViewHolder(holder: ViewHolder, position: Int) {
 | 
			
		||||
        holder.bind(items[position])
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -95,7 +95,8 @@ data class GetAudioContentListItem(
 | 
			
		||||
    @SerializedName("isScheduledToOpen") val isScheduledToOpen: Boolean,
 | 
			
		||||
    @SerializedName("isRented") val isRented: Boolean,
 | 
			
		||||
    @SerializedName("isOwned") val isOwned: Boolean,
 | 
			
		||||
    @SerializedName("isSoldOut") val isSoldOut: Boolean
 | 
			
		||||
    @SerializedName("isSoldOut") val isSoldOut: Boolean,
 | 
			
		||||
    @SerializedName("isPointAvailable") val isPointAvailable: Boolean
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
@Keep
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								app/src/main/res/drawable/bg_round_corner_2_6_7849bc.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								app/src/main/res/drawable/bg_round_corner_2_6_7849bc.xml
									
									
									
									
									
										Normal 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>
 | 
			
		||||
@@ -69,6 +69,21 @@
 | 
			
		||||
                tools:ignore="SmallSp"
 | 
			
		||||
                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
 | 
			
		||||
                android:id="@+id/iv_pin"
 | 
			
		||||
                android:layout_width="13.3dp"
 | 
			
		||||
 
 | 
			
		||||
@@ -129,4 +129,6 @@
 | 
			
		||||
    <color name="color_ccffffff">#CCFFFFFF</color>
 | 
			
		||||
    <color name="color_cc777777">#CC777777</color>
 | 
			
		||||
    <color name="color_ec3aa6">#EC3AA6</color>
 | 
			
		||||
    <color name="color_7849bc">#7849BC</color>
 | 
			
		||||
    <color name="color_bf98ff">#BF98FF</color>
 | 
			
		||||
</resources>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user