Thread
#compose
    Lukas

    Lukas

    1 year ago
    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.
    Filip Wiesner

    Filip Wiesner

    1 year ago
    Make sure to set
    width = Dimension.fillToConstraints
    on in the
    constrainAs
    DSL
    Lukas

    Lukas

    1 year ago
    Sadly didn't do any difference, though thanks for making me aware of
    Dimension.fillToConstraints
    .
    jim

    jim

    1 year ago
    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.
    Colton Idle

    Colton Idle

    1 year ago
    oOooOH! CL is android only? That's a game changer... might have to stick to rows and cols. 😄
    jim

    jim

    1 year ago
    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.