Skip to content

Commit

Permalink
feat(elevatedview): ElevatedView on Android now supports setting the …
Browse files Browse the repository at this point in the history
…shadow color.
  • Loading branch information
carldebilly committed Jul 16, 2020
1 parent 0508640 commit 0275d09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Uno.UI.Toolkit/UIElementExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ internal static void SetElevationInternal(this DependencyObject element, double
if (element is Android.Views.View view)
{
AndroidX.Core.View.ViewCompat.SetElevation(view, (float)Uno.UI.ViewHelper.LogicalToPhysicalPixels(elevation));
#if __ANDROID_28__
view.SetOutlineAmbientShadowColor(shadowColor);
view.SetOutlineSpotShadowColor(shadowColor);
#endif
}
#elif __IOS__
if (element is UIKit.UIView view)
Expand Down

0 comments on commit 0275d09

Please sign in to comment.