fix(chat): 최근 대화한 캐릭터
- 캐릭터 이미지 원형으로 변경
This commit is contained in:
@@ -6,10 +6,9 @@ import android.view.LayoutInflater
|
|||||||
import android.view.ViewGroup
|
import android.view.ViewGroup
|
||||||
import androidx.recyclerview.widget.RecyclerView
|
import androidx.recyclerview.widget.RecyclerView
|
||||||
import com.bumptech.glide.Glide
|
import com.bumptech.glide.Glide
|
||||||
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
|
import com.bumptech.glide.load.resource.bitmap.CircleCrop
|
||||||
import com.bumptech.glide.request.RequestOptions
|
import com.bumptech.glide.request.RequestOptions
|
||||||
import kr.co.vividnext.sodalive.databinding.ItemRecentCharacterBinding
|
import kr.co.vividnext.sodalive.databinding.ItemRecentCharacterBinding
|
||||||
import kr.co.vividnext.sodalive.extensions.dpToPx
|
|
||||||
|
|
||||||
class RecentCharacterAdapter(
|
class RecentCharacterAdapter(
|
||||||
private var characters: List<RecentCharacter> = emptyList(),
|
private var characters: List<RecentCharacter> = emptyList(),
|
||||||
@@ -25,10 +24,9 @@ class RecentCharacterAdapter(
|
|||||||
Glide.with(context)
|
Glide.with(context)
|
||||||
.load(character.imageUrl)
|
.load(character.imageUrl)
|
||||||
.apply(
|
.apply(
|
||||||
RequestOptions().transform(
|
RequestOptions()
|
||||||
RoundedCorners(
|
.transform(
|
||||||
28f.dpToPx().toInt()
|
CircleCrop()
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.into(binding.ivProfile)
|
.into(binding.ivProfile)
|
||||||
|
|||||||
Reference in New Issue
Block a user