parent
ba83027dc9
commit
d0eb4103ba
|
@ -40,8 +40,8 @@ android {
|
||||||
applicationId "kr.co.vividnext.sodalive"
|
applicationId "kr.co.vividnext.sodalive"
|
||||||
minSdk 23
|
minSdk 23
|
||||||
targetSdk 33
|
targetSdk 33
|
||||||
versionCode 76
|
versionCode 78
|
||||||
versionName "1.11.3"
|
versionName "1.12.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|
|
@ -832,7 +832,7 @@ class UserProfileActivity : BaseActivity<ActivityUserProfileBinding>(
|
||||||
placeholder(R.drawable.ic_place_holder)
|
placeholder(R.drawable.ic_place_holder)
|
||||||
transformations(RoundedCornersTransformation(4.7f.dpToPx()))
|
transformations(RoundedCornersTransformation(4.7f.dpToPx()))
|
||||||
|
|
||||||
if (!item.existOrdered) {
|
if (!item.existOrdered && item.price > 0) {
|
||||||
transformations(
|
transformations(
|
||||||
BlurTransformation(
|
BlurTransformation(
|
||||||
this@UserProfileActivity,
|
this@UserProfileActivity,
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
package kr.co.vividnext.sodalive.explorer.profile.creator_community
|
package kr.co.vividnext.sodalive.explorer.profile.creator_community
|
||||||
|
|
||||||
|
import android.content.Context
|
||||||
import android.view.LayoutInflater
|
import android.view.LayoutInflater
|
||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
|
import coil.transform.BlurTransformation
|
||||||
import coil.transform.CircleCropTransformation
|
import coil.transform.CircleCropTransformation
|
||||||
import coil.transform.RoundedCornersTransformation
|
import coil.transform.RoundedCornersTransformation
|
||||||
import kr.co.vividnext.sodalive.R
|
import kr.co.vividnext.sodalive.R
|
||||||
|
@ -17,6 +19,7 @@ class CreatorCommunityAdapter(
|
||||||
val items = mutableListOf<GetCommunityPostListResponse>()
|
val items = mutableListOf<GetCommunityPostListResponse>()
|
||||||
|
|
||||||
inner class ViewHolder(
|
inner class ViewHolder(
|
||||||
|
private val context: Context,
|
||||||
private val binding: ItemCreatorCommunityBinding
|
private val binding: ItemCreatorCommunityBinding
|
||||||
) : RecyclerView.ViewHolder(binding.root) {
|
) : RecyclerView.ViewHolder(binding.root) {
|
||||||
fun bind(item: GetCommunityPostListResponse) {
|
fun bind(item: GetCommunityPostListResponse) {
|
||||||
|
@ -33,6 +36,16 @@ class CreatorCommunityAdapter(
|
||||||
crossfade(true)
|
crossfade(true)
|
||||||
placeholder(R.drawable.ic_place_holder)
|
placeholder(R.drawable.ic_place_holder)
|
||||||
transformations(RoundedCornersTransformation(4.7f.dpToPx()))
|
transformations(RoundedCornersTransformation(4.7f.dpToPx()))
|
||||||
|
|
||||||
|
if (!item.existOrdered && item.price > 0) {
|
||||||
|
transformations(
|
||||||
|
BlurTransformation(
|
||||||
|
context,
|
||||||
|
25f,
|
||||||
|
2.5f
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.tvLikeCount.text = "${item.likeCount}"
|
binding.tvLikeCount.text = "${item.likeCount}"
|
||||||
|
@ -43,6 +56,7 @@ class CreatorCommunityAdapter(
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) = ViewHolder(
|
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int) = ViewHolder(
|
||||||
|
parent.context,
|
||||||
ItemCreatorCommunityBinding.inflate(
|
ItemCreatorCommunityBinding.inflate(
|
||||||
LayoutInflater.from(parent.context),
|
LayoutInflater.from(parent.context),
|
||||||
parent,
|
parent,
|
||||||
|
|
Loading…
Reference in New Issue