Xamarin.Forms icon indicating copy to clipboard operation
Xamarin.Forms copied to clipboard

[Android] Aspect filling an image draws on frame border

Open adrianknight89 opened this issue 6 years ago • 2 comments
trafficstars

Description

iOS and Android treat frame borders differently when an image is stretched inside the frame.

Steps to Reproduce

  1. Run the repro
  2. 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

Screenshot_20190731-143936

Reproduction Link

App1555.zip

adrianknight89 avatar Jul 31 '19 19:07 adrianknight89

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.

jfversluis avatar Aug 06 '19 10:08 jfversluis

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

GarethFZA avatar Mar 05 '24 15:03 GarethFZA