In the video below, I want the image to be on top of all other elements in the hierarchy. This is in a LazyColumn.
I tried increasing the z-index but didn’t work.
Is there any way to achieve this?
Also can we play/change z index after items are drawn?
zIndex changes the drawing order for the children of the same parent. here seems like you need to change zIndex() for multiple layout layers, especially for the one which is a direct child of LazyColumn
a
Aman Kapoor
05/13/2021, 10:56 AM
Yes. Also this text below the image is part of the same parent.
a
Andrey Kulikov
05/13/2021, 11:04 AM
if it doesn’t work it means you set zIndex on an incorrect layout. I will be able to help if you share the code
a
Aman Kapoor
05/13/2021, 11:10 AM
I’ll share the code in a while[I had removed that code]. Also will try updating zIndex for the direct child of lazycolumn too… also updating the zIndex while transforming the image will work right? I mean it can be changed/animated.