android - How to determine XY of resized image -
I have a dynamically-loaded bitmap in an image value and the user uses the FitCenter attribute to resize the screen I am doing
How can I find the initial X, Y (left, top) of the original image after the size of the fit on the screen?
Please refer to this annotated enclosed sample image, in this case I am looking for 'X', left side of bitmap
Thank you!
< This is a trick for me without additional computation:
"Android: contentDescription =" @ string / white_balance "Android: scaleType =" fitCenter "Android: src =" @drawable / pichost "/>
Comments
Post a Comment