I want to get the position of my ImageView programmatically. By position, I mean the distance in pixel from top of the screen to that ImageView. I
Glide.with(this)
.asBitmap()
.apply(requestOptions)
.load(url)
.placeholder(R.mipmap.img_place_holder)
.apply(new RequestOptions().override(myImage.getMeasuredWidth(), myImage.getMeasuredHeight()))
.into(new SimpleTarget() {
@Override
public void onResourceReady(Bitmap bitmap,
Transition super Bitmap> transition) {
// TouchImageView myImage1 = findViewById(R.id.image_zoom_poll_card);
img_zoomIn.setVisibility(View.VISIBLE);
myImage.setImageBitmap(bitmap);
getBitmapPositionInsideImageView(myImage, img_zoomIn);
}
});