I taking an image from a gallery and showing it in ImageView but, after setting the image in ImageView, its shape is completely distorted and it does not maintain the aspect ratio of the original.
Below is an image after setting in ImageView. How can I maintain the aspect ratio of the original?