set Shadow Enabled
Deprecated
use setShadowCompatibilityMode instead.
Set shadow rendering to be enabled or disabled when requiresCompatShadow is true. Setting this to false could provide some performance benefits on older devices if you don't mind no shadows being drawn.
Note: native elevation shadows will still be drawn on API 21 and up if the shape is convex and the view with this background has elevation.
Parameters
shadow Enabled
true if fake shadows should be drawn; false if not.