I have an Android application to show images with viewPager
. The images is in fixed size, so in some Android devices they appear with an empty border according to screen size and screen resolution.
Is there and way to resize the image to fit the screen?
It's not possible to put more than one image size in project, because I have more than 500 images.
You should try the different scaleTypes available. The documentation can be found here and (which I prefer) here is a very nice collection of examples of what these scaleTypes look like.
If you just want your image to be stretched and do not care about losing the aspect ratio, you might want to go with scaleType: fitXY