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

Bino

09/22/2022, 12:44 PM
Can anyone help me with
barriers
in compose? I’m trying to archive something really easy, but stuck. #00FF00 should stick to #FFFF00 #FFFF00 should be centered vertically #0000FF should stick to the right ⚠️ when #FFFF00 expands, #00FF00 is gone (moved outside) https://gist.github.com/thebino/6fee572f5f69b06fd44ec3b849a583a2
a

AmrJyniat

09/22/2022, 1:05 PM
Try setting
width = Dimension.fillToConstraints
to the yellow text
b

Bino

09/22/2022, 1:06 PM
This will expand the yellow one to the full size and move the green one outside even if there is enough room
2 Views