XamarinCommunityToolkit icon indicating copy to clipboard operation
XamarinCommunityToolkit copied to clipboard

[Bug] [Android] ShadowEffect rendering works wrong on Android

Open VolodaUa opened this issue 2 years ago • 1 comments

Description

Looks like ShadowEffect and using OffsetX or OffsetY properties works wrong on Android and actually cuts the view instead of making the requested shadow. iOS experience is great and the same code works like expected there.

Code

<Frame HasShadow="False" HeightRequest="180" WidthRequest="180" BorderColor="Gray" CornerRadius="90" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand" Margin="0" Padding="0" xct:ShadowEffect.Color="Black" xct:ShadowEffect.OffsetY="30" xct:ShadowEffect.Radius="10" xct:ShadowEffect.OffsetX="30" BackgroundColor="Red" />

Steps to Reproduce

  1. Put the provided code on page;
  2. Add xmlns:xct="http://xamarin.com/schemas/2020/toolkit" to page;
  3. Run sample

Expected Behavior

Ios

Actual Behavior

Android

Basic Information

  • Version with issue: Xamarin.Forms -> 5.0.0.2401, Xamarin.CommunityToolkit -> 2.0.2
  • Last known good version: unknown;
  • Nuget Packages: Xamarin.Forms, Xamarin.CommunityToolkit
  • Affected Devices: Simulators and devices. I didn't found some device specific difference.

Workaround

Not found

VolodaUa avatar May 16 '22 14:05 VolodaUa

I attached expected result from iOS as it works there. Similar I would like to see on Android.

VolodaUa avatar May 16 '22 14:05 VolodaUa