라이브 배경이미지 캐시 적용
This commit is contained in:
@@ -57,6 +57,7 @@ import kr.co.vividnext.sodalive.common.SodaLiveService
|
||||
import kr.co.vividnext.sodalive.databinding.ActivityLiveRoomBinding
|
||||
import kr.co.vividnext.sodalive.dialog.LiveDialog
|
||||
import kr.co.vividnext.sodalive.extensions.dpToPx
|
||||
import kr.co.vividnext.sodalive.extensions.loadUrl
|
||||
import kr.co.vividnext.sodalive.extensions.moneyFormat
|
||||
import kr.co.vividnext.sodalive.live.room.chat.LiveRoomChatAdapter
|
||||
import kr.co.vividnext.sodalive.live.room.chat.LiveRoomChatRawMessage
|
||||
@@ -674,13 +675,7 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
}
|
||||
|
||||
binding.tvTitle.text = response.title
|
||||
binding.ivCover.load(
|
||||
response.coverImageUrl,
|
||||
imageLoader = ImageLoader.Builder(applicationContext)
|
||||
.memoryCachePolicy(CachePolicy.ENABLED)
|
||||
.diskCachePolicy(CachePolicy.ENABLED)
|
||||
.build()
|
||||
)
|
||||
binding.ivCover.loadUrl(response.coverImageUrl)
|
||||
|
||||
binding.flDonation.visibility =
|
||||
if (response.creatorId != SharedPreferenceManager.userId) {
|
||||
@@ -797,7 +792,7 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
setNoticeAndClickableUrl(binding.tvNotice, response.notice)
|
||||
|
||||
binding.tvCreatorNickname.text = response.creatorNickname
|
||||
binding.ivCreatorProfile.load(response.creatorProfileUrl) {
|
||||
binding.ivCreatorProfile.loadUrl(response.creatorProfileUrl) {
|
||||
crossfade(true)
|
||||
placeholder(R.drawable.ic_place_holder)
|
||||
transformations(CircleCropTransformation())
|
||||
|
||||
@@ -10,6 +10,7 @@ import coil.transform.RoundedCornersTransformation
|
||||
import kr.co.vividnext.sodalive.R
|
||||
import kr.co.vividnext.sodalive.databinding.ItemLiveRoomProfileBinding
|
||||
import kr.co.vividnext.sodalive.extensions.dpToPx
|
||||
import kr.co.vividnext.sodalive.extensions.loadUrl
|
||||
import kr.co.vividnext.sodalive.live.room.info.LiveRoomMember
|
||||
|
||||
class LiveRoomProfileListAdapter : RecyclerView.Adapter<LiveRoomProfileListAdapter.ViewHolder>() {
|
||||
@@ -17,7 +18,7 @@ class LiveRoomProfileListAdapter : RecyclerView.Adapter<LiveRoomProfileListAdapt
|
||||
private val binding: ItemLiveRoomProfileBinding
|
||||
) : RecyclerView.ViewHolder(binding.root) {
|
||||
fun bind(item: LiveRoomMember) {
|
||||
binding.ivProfile.load(item.profileImage) {
|
||||
binding.ivProfile.loadUrl(item.profileImage) {
|
||||
crossfade(true)
|
||||
placeholder(R.drawable.ic_place_holder)
|
||||
transformations(RoundedCornersTransformation(23.3f.dpToPx()))
|
||||
|
||||
Reference in New Issue
Block a user