Ben Powell

01/27/2023, 10:21 PM
I’m building custom shadows for an app with a minimum SDK level of 23. I could use Canvas.setShadowLayer, but it gets hardware rendering support at level 29. Other methods (Modifier.blur, AGSL) have a higher SDK level. Can I tell Compose to render a particular Canvas in software? The sizes, colors, and offsets of the shadows do not match Material’s. I could disable hardware rendering for the entire ComposeView, but even if that worked, I’m not sure what it would do to performance.
🤷‍♂️ 1