Skip to content

Commit

Permalink
[MIN-44] feat: Glide BindingAdapter 구현 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
KDW03 committed Feb 11, 2023
1 parent 66b2fd1 commit 693ef29
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package com.najudoryeong.mineme.common_ui

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide


@BindingAdapter("photoUrl")
fun bindImageView(imageView: ImageView, photoUrl: String?) {
Glide.with(imageView.context)
.load(photoUrl)
.placeholder(R.drawable.img_profile)
.into(imageView)
}

0 comments on commit 693ef29

Please sign in to comment.