Is it possible to someone draw into the bounding of of a neighboring composable? For example I want to draw something centered on top of box 2. But using a column doesn't work since it would use the largest width, which is the one of the top content. There would be a empty space left and right of box 2.
j
Joseph Hawkes-Cates
06/12/2022, 4:12 PM
You can put
.wrapContentSize(unbounded = true)
modifier on the dotted line composable and it'll allow it to exceed the bounds of the column.
k
kotlinforandroid
06/12/2022, 4:33 PM
thank you very much!
kotlinforandroid
06/14/2022, 4:06 PM
@Joseph Hawkes-Cates that did actually not work. Not sure why. This is the code I've used: