Hi, small question regarding `ConstraintLayout` . ...
# compose
l
Hi, small question regarding
ConstraintLayout
. How can I prevent the text from getting out of bounds as in the screenshot? Constraining the the textend to
parent.end
doesn't seem to work in this case.
f
Make sure to set
width = Dimension.fillToConstraints
on in the
constrainAs
DSL
l
Sadly didn't do any difference, though thanks for making me aware of
Dimension.fillToConstraints
.
j
Also,
ConstraintLayout
is not compatible with other platforms like Desktop, so keep that in mind, it might be desirable to do layout via pure Compose thus making your widget more reusable.
c
oOooOH! CL is android only? That's a game changer... might have to stick to rows and cols. 😄
j
You can also write a custom layout, which allows you to do anything you want in terms of layout, and is thus even more flexible than constraint layout. A bit of a learning curve, but well worth it.