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

Pavle Joksovic

05/20/2022, 8:32 AM
I have Column that consists of Text (aligned to the top of the screen) Scrollable Text (placed between the top text and bottom button) Button (aligned to the bottom of the screen) What is the easiest way to implement this? If I just place it in a Column the scrollable text pushes the button below the visibility of the screen.
o

Oleksandr Balan

05/20/2022, 8:34 AM
Did you try to constraint the height of the scrollable text with
.weight(1f)
modifier?
👍 1
h

Horácio Comé

05/20/2022, 8:39 AM
and also make only the scrollable text scrollable
👍 1
p

Pavle Joksovic

05/20/2022, 9:00 AM
Works like a charm @Oleksandr Balan ty
👍 1
3 Views