I was using an imageview and all of a sudden when I was playing with the scale, i noticed that there was some extra space after the imageview. Found a solution to add android:adjustViewBounds=”true”
Thanks to stackoverflow link: https://stackoverflow.com/questions/4107597/blank-space-after-imageview