This is a known issue and it cannot be fixed right now as this depends on how Android does shadow under the hood, you can solve this by overlapping your shape to another one with filled color and use shadow on that OR putting your shape inside an overlap group and use the shadow in the overlap group instead