feat: 콘텐츠 상세 - 포인트가 사용 가능한 경우 커버이미지 우측 상단에 포인트 아이콘으로 표시
This commit is contained in:
parent
f265732741
commit
009e2080fc
|
@ -351,7 +351,8 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
||||||
if (viewModel.audioContentLiveData.value!!.isAvailablePin) {
|
if (viewModel.audioContentLiveData.value!!.isAvailablePin) {
|
||||||
viewModel.pinContent(audioContentId)
|
viewModel.pinContent(audioContentId)
|
||||||
} else {
|
} else {
|
||||||
SodaDialog(this@AudioContentDetailActivity,
|
SodaDialog(
|
||||||
|
this@AudioContentDetailActivity,
|
||||||
layoutInflater,
|
layoutInflater,
|
||||||
"고정 한도 도달",
|
"고정 한도 도달",
|
||||||
"이 콘텐츠를 고정하시겠어요? " +
|
"이 콘텐츠를 고정하시겠어요? " +
|
||||||
|
@ -846,6 +847,12 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
||||||
} else if (response.releaseDate == null) {
|
} else if (response.releaseDate == null) {
|
||||||
binding.tvPreviewNo.visibility = View.VISIBLE
|
binding.tvPreviewNo.visibility = View.VISIBLE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
binding.ivPoint.visibility = if (response.isAvailableUsePoint) {
|
||||||
|
View.VISIBLE
|
||||||
|
} else {
|
||||||
|
View.GONE
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressLint("SetTextI18n")
|
@SuppressLint("SetTextI18n")
|
||||||
|
|
|
@ -42,7 +42,8 @@ data class GetAudioContentDetailResponse(
|
||||||
@SerializedName("creator") val creator: AudioContentCreator,
|
@SerializedName("creator") val creator: AudioContentCreator,
|
||||||
@SerializedName("previousContent") val previousContent: OtherContentResponse?,
|
@SerializedName("previousContent") val previousContent: OtherContentResponse?,
|
||||||
@SerializedName("nextContent") val nextContent: OtherContentResponse?,
|
@SerializedName("nextContent") val nextContent: OtherContentResponse?,
|
||||||
@SerializedName("buyerList") val buyerList: List<ContentBuyer>
|
@SerializedName("buyerList") val buyerList: List<ContentBuyer>,
|
||||||
|
@SerializedName("isAvailableUsePoint") val isAvailableUsePoint: Boolean
|
||||||
)
|
)
|
||||||
|
|
||||||
@Keep
|
@Keep
|
||||||
|
|
|
@ -180,6 +180,17 @@
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textSize="36.7sp"
|
android:textSize="36.7sp"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:id="@+id/iv_point"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentEnd="true"
|
||||||
|
android:layout_marginTop="13.3dp"
|
||||||
|
android:layout_marginEnd="13.3dp"
|
||||||
|
android:contentDescription="@null"
|
||||||
|
android:src="@drawable/ic_point"
|
||||||
|
android:visibility="gone" />
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
<androidx.constraintlayout.widget.ConstraintLayout
|
||||||
|
|
Loading…
Reference in New Issue