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

krzysztof

02/21/2021, 10:16 PM
Is there a way to do some kind of absolute positioning? I’d like to draw content over other content conditionally, but I could use some tips on how to do so
k

Kirill Grouchnikov

02/21/2021, 10:19 PM
Do you have a more specific scenario in mind? Like a screenshot or a design mock?
k

krzysztof

02/21/2021, 10:26 PM
No design/screenshot, sorry. I try to create a fullscreen overlay to: • hide the content behind (being partially visible, due to alpha applied) • Disable any clickable content when content is hidden Something like this:
Copy code
ScrollableColumn() {
        Section()
        Section()
        Section()
        if(something) {
            FullscreenOverlay()
        }
    }
Example of such overlay could be a fullscreen loading indicator (which blocks any interactions while it’s visible)
r

robnik

02/21/2021, 10:30 PM
I've been using Box to put a loading indicator over the rest of the UI.
👍 1
But I don't know if that's the best way.
6 Views