Created
January 20, 2019 10:00
-
-
Save IhwanID/0a23e3da09bf4ea63ee749bd70d5189b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package id.ihwan.aac.utils | |
import android.widget.ImageView | |
import androidx.databinding.BindingAdapter | |
import com.squareup.picasso.Picasso | |
class BindingAdapter { | |
companion object { | |
@JvmStatic | |
@BindingAdapter("loadImage") | |
fun loadImage(imageView: ImageView, url: String){ | |
Picasso.get().load("https://image.tmdb.org/t/p/w500/"+ url).into(imageView) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment