You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently noticed that the Elevation based shadows on Android don't play well with the custom background Drawable that is being set.
The problem seems to be that the Elevation values are thrown out the window as soon as a custom background Drawable is set. However, we need that custom Drawable to support all of our other features like the gradient background, rounded corners and borders. I'd expect there's a way to get the best of both worlds?
If someone has a consistent solution for getting a shadow working while using a custom background Drawable that would be great! On iOS this feature works as it should as seen in the screenshots below.
The text was updated successfully, but these errors were encountered:
To have the shadow show up we need to clip using the ViewOutlineProvider. This means that when we have a shadow we need to force the use of that, meaning individual corner radii are lost since the ViewOutlineProvider doesn't support those. It's a shame, but that's how it is it seems :(
Recently noticed that the
Elevation
based shadows on Android don't play well with the custom backgroundDrawable
that is being set.The problem seems to be that the
Elevation
values are thrown out the window as soon as a custom backgroundDrawable
is set. However, we need that customDrawable
to support all of our other features like the gradient background, rounded corners and borders. I'd expect there's a way to get the best of both worlds?If someone has a consistent solution for getting a shadow working while using a custom background
Drawable
that would be great! On iOS this feature works as it should as seen in the screenshots below.The text was updated successfully, but these errors were encountered: