Xamarin.Forms
Xamarin.Forms copied to clipboard
[Android] Aspect filling an image draws on frame border
trafficstars
Description
iOS and Android treat frame borders differently when an image is stretched inside the frame.
Steps to Reproduce
- Run the repro
- Observe that you cannot see the left and right borders on Android, but they are visible on iOS. The frame as shown below has 10 vertical padding.
Screenshots

Reproduction Link
A quick workaround for this would be to add a bit of padding on the sides as well to show the border.
But I confirmed that this behavior is shown on Android.
If I would have to guess, it's probably that the Android border is drawn on the inside of the frame while on iOS it is on the outside.
Is there any update on this issue? Funny enough, if I debug the app and change the bordercolour with Hot Reload, then change back to the original colour, it renders the Frame border correctly. But it doesn't render correctly first time