I have image in drawable, which needs to work as the background. It needs to stretch to fill the screen.. I know how to stretch the image full screen using java code.. but in XML itselt how can do this.
android:scaleType="fitXY"
will stretch the image to fit the full size of the ImageView
Try with this property:
android:scaleType="fitXY"
Here you can find other constant values for resizing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With