I have a Xamarin.Forms app, but this question is only concerning Android.
I have a splash screen with an logo and a background color which I want to update. I want to use an image for a background now, so what I did was to create this background image with the logo on top, save that as one image and use that as the splash screen. This is causing some problems.
The image displays too small on the screen and I want this image to fit the screen (thus fullscreen with a locked aspect ratio), but I cannot get it to work nicely. The only option I could find was 'fill', which causes the image to deform. I could get it perfect on my screen, but a screen with a different ratio might see the deformed image then. The image I have is a square to make sure that when using fit, the entire screen is filled. Now I'm simply looking for an method to make the image fit the screen, rather than fill the screen.
I tried to visualize my question here:
My XML looks likes this:
How can I fit this image instead of filling it?
Hope someone can help.