In the video below, I want the image to be on top ...
# compose
a
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?
a
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
Yes. Also this text below the image is part of the same parent.
a
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
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.