Laurence Muller

06/04/2022, 5:44 PM
Hi, I'm learning Compose and trying to re-implement a rectangle with a border only on 3 sides. In the old school way, I created a drawable with a negative offset, but in the world of Compose I'm not sure what the equivalent would be. Any ideas what I should try?🧵
This is the drawable i use to use in XML. Just set it as a background of a view
But then with compose... am i suppose to clip it?

Jessica Ernst

06/04/2022, 5:57 PM That's a good article for that. Little Spoiler in Compose you don't use xml for that
👍 1
:thank-you: 1

Laurence Muller

06/04/2022, 6:20 PM
Thanks, that did help!
🎉 1