I need the ImageView to scale the image to fit the parent horizontally.
If the background of the image is red and the rest of the content (below the image) is green, I am looking for the result shown in Image 1 . This result is automatically obtained if the image width is greater than the screen width.
But if this is a small image, as in picture 2. the best result I can get is picture 3 (setting the width and height of ImageView fill_parent ), and scaleType for FitStart
Image 4 is obtained by setting height = wrap_content, width = fill_parent, scaleType = CenterCrop. It needs to scale vertically to display the whole image, but since scaleType says it will drop it.
Any ideas for getting image 1, even if the image is small?
Will give a reward of 50 for a working answer

Addev
source share