<Is is possible to add property to ImageView using...
# stackoverflow
u
Is is possible to add property to ImageView using extensions to load image via url? I created an extension function that downloads the image from URL using Glide and loads it into ImageView. fun ImageView.loadImageFromUrl(url: String) { Glide.with(this) .load(url) .into(this) } What I would like to do is add a property loadImageFromUrl to ImageView and assign the URL to it. imageView.loadImageFromUrl = "https://sample-url.com/image" I am aware this can be done using BindingAdapter from DataBinding. Can this functionality be achieved without...