So here's the problem. I am displaying a big image in ImageView and need to find it's position relative to the image. Like this:
╔═══════════════════════════════╗
║ Image ║
║──>╔═════════════╗ ║
║ ║ ImageView ║ ║
║ ║ ║ ║
║ ╚═════════════╝ ║
║ ║
║ ║
╚═══════════════════════════════╝
Any help?
UPD: Since there were some misunderstandings I will explain the problem in detail.
I have an image. A Bitmap actually. I am displaying it in an ImageView with CENTER
scale type. Assume that the image is bigger than the ImageView, so only a part of the image is displayed. I want to find the position of this part relative to the whole image.
getTop() , getLeft() on the child view won't solve it ? And if views are not parent-child , but have same parent - do it for each view and do the math
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With