Android : Determine size of whitespace in ImageView

on Thursday, July 31, 2014


I have a floor plan which is centred in an ImageView. The aspect ratio of the image is preserved so there is some space on either side of the image (indicated in red colour).


How can I determine the width of this red space in pixels or dp?


enter image description here


0 comments:

Post a Comment