My concern is how to fit image using android:scaleType=\"fitXY\"
into image using Glide.
My ImageView
is
<
If use Glide v4 GlideApp instance of Glide:
GlideApp.with(view.getContext())
.load(url)
.centerCrop()
.into(view);
If use databinding:
@BindingAdapter("glideCropCenter")
public static void setProgress(ImageView view, string url) {
GlideApp.with(view.getContext())
.load(url)
.centerCrop()
.into(view);
}
In xml: