I am loading image from server using Glide with this code:
private void loadImage(Context context, String url, ImageView imageView, int x1, int y1, int x2, int y2) {
Glide.with(context)
.load(url)
.into(imageView);
}
I need to show only piece of image in my ImageView. Coordinates of this piece placed in variables x1, x2, y1 and y2. How to cut only needed part of image using Glide?