Why common Compose operations like clip and border allowing creation of shapes are not supported in the Android framework or are somehow hidden from the average developer?
r
romainguy
08/08/2022, 3:54 AM
What do you mean? You'd want features like borders to work on Views for instance?
m
Mehdi Haghgoo
08/08/2022, 3:56 AM
Yes, I looked up material.io, which is mostly specifications on shapes for example and no Android implementations are provided.
Mehdi Haghgoo
08/08/2022, 3:59 AM
But, I see nice shapes in some Google apps like Keep and Google Photos Widget. How are these outlines created?
It's rather limited. I can only get round and rectangular outlines using such shapes defined as drawables and then used as background. I don't find an easy way to create custom outlines and borders in non-Compose code.