Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

[Android] What size should an image have?

$
0
0

Hi everyone,

I try to figure out what size my images for eg. hdpi should be. I don't need the Google guidelines to this because I already found them. :)

The problem is when I have an image of 320x410 and display it inside of a StackedLayout (one Label above and below the image) on a 480x800 device, the debugger tells me that the ImageView is only 320x270 while there is still space left and right.

When I use HeightRequest = 410 than the image gets displayed correctly.

Why is the ImageView not extending more while there is space left on its sides and even more above and below it?
And why is the image scaled down in the first place when it should fit inside of the screen?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>