https://kotlinlang.org logo
r

rsktash

08/28/2021, 10:05 PM
[SOLVED] Hi. How can I achieve that the context menu items draw over the column rows?
I want to draw menu items over column rows
I solved it
f

Fudge

08/29/2021, 10:08 AM
Use
Box
, which is the non-hacky way of displaying items on top of each other.
Box { A() B() // will be displayed on top of B }
r

rsktash

08/29/2021, 10:09 AM
In my case it is a list
f

Fudge

08/29/2021, 10:10 AM
You can put a list inside a box
r

rsktash

08/29/2021, 10:10 AM
Can you give an example where extra content of n'th item drawn over next items?
f

Fudge

08/29/2021, 10:15 AM
I see what you mean. It would be difficult to position the context menu below 'text 2' if you use box
Maybe ConstraintLayout. It allows you to do more exotic layouts
r

rsktash

08/29/2021, 10:16 AM
I’ve achieved it without any box or constraintlayout
f

Fudge

08/29/2021, 10:17 AM
Yes you've created some sort of 'position:absolute' in Compose
m

Mini

08/29/2021, 11:10 AM
You might want to check out dropdown, if you haven't already
r

rsktash

08/29/2021, 11:12 AM
@Mini It looses textfield focus