Is it somehow possible to create a shape from an I...
# compose
z
Is it somehow possible to create a shape from an ImageVector? 🧵👀
Im experimenting with an odd use-case where Id like to create a beating heart, with a shadow, and text thats always wrapped inside. I believe a custom heart shape would solve these two? I can get the text inside by using clever line-breaks and padding, but I cant guarantee that will work across all size configurations; and Im not sure I can get the shadow/elevation going properly without using a shape. Ive seen some gists with custom shapes, theres even one specifically with a heart by way of the GenericShape API and some clever/manual pathing. Id like the heart to match the rest of my icons (rounded) though. Is this possible, somehow, some way?
a
The bounds of a layout is always a rectangle. Clipping the layer doesn't affect the bounds of the layout.
👍🏽 1