XamarinCommunityToolkit
XamarinCommunityToolkit copied to clipboard
[Bug] [Android] ShadowEffect rendering works wrong on Android
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
- Put the provided code on page;
- Add xmlns:xct="http://xamarin.com/schemas/2020/toolkit" to page;
- Run sample
Expected Behavior
Actual Behavior
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
I attached expected result from iOS as it works there. Similar I would like to see on Android.