FFImageLoading
FFImageLoading copied to clipboard
Cached Image Aspect="Fill" Doesn't work
I'm trying to make the image fill the width and height of the imageview, with non-uniform scaling off course, but it doesn't seem to work.
This is my code
<forms:CachedImage DownsampleToViewSize="True" RelativeLayout.XConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.1275}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.53}"
RelativeLayout.WidthConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.3}"
RelativeLayout.HeightConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.133}"
Source="panelbalance.png" Aspect="Fill" VerticalOptions="End" HorizontalOptions="CenterAndExpand" FadeAnimationEnabled="False"/>
<forms:CachedImage DownsampleToViewSize="True" RelativeLayout.XConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.5725}"
RelativeLayout.YConstraint="{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.53}"
RelativeLayout.WidthConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.3}"
RelativeLayout.HeightConstraint= "{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.133}"
Source="panelprofile.png" Aspect="Fill" VerticalOptions="End" HorizontalOptions="CenterAndExpand" FadeAnimationEnabled="False"/>
And it produces this:

(the images have no whitespace around them)
It may be related to this: https://github.com/luberda-molinet/FFImageLoading/issues/545 https://github.com/luberda-molinet/FFImageLoading/issues/480
Let's continue in other threads.