Hi, I'm learning Compose and trying to re-implement a rectangle with a border only on 3 sides. In th...
l
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?
j
https://juliensalvi.medium.com/custom-shape-with-jetpack-compose-1cb48a991d42 That's a good article for that. Little Spoiler in Compose you don't use xml for that
๐Ÿ‘ 1
๐Ÿ™ 1
l
Thanks, that did help!
๐ŸŽ‰ 1