https://kotlinlang.org logo
#compose
Title
# compose
v

voben

11/12/2021, 8:39 PM
How do I create something like this in compose where there is overlap between the Card and Image? Should I be using Box? I’ve tried a Column with a negative spacing arrangment but that didnt seem to work for me
d

dewildte

11/12/2021, 11:01 PM
I would Suggest both elements be inside a Box.
c

Chris Sinco [G]

11/12/2021, 11:04 PM
You can use the offset Modifier on the elements within a Box. Or if you need a lot more control, there’s ConstraintLayout in Compose
👍 1
c

Colton Idle

11/14/2021, 4:57 PM
I did this recently and went with offset, but yeah... I couldn't help but think that maybe there's a better way.