Is there any way to force all items in a Row to show? For example, if I have a row with text and a checkbox, then it looks good, but if the text is really long, it pushes the checkbox out of the row.
a
Adam Powell
04/15/2021, 5:12 PM
Restrict the space available to the text. You can give the text a weight which will cause the row to measure it after all unweighted children.
Adam Powell
04/15/2021, 5:16 PM
and definitely be aware of the "fill" parameter to the weight modifier, which can let you tweak behavior even further
c
Colton Idle
04/15/2021, 5:19 PM
"will cause the row to measure it after all unweighted children."
So maybe that's the key. I keep thinking that weight and stuff is different in compose land vs viewland because things don't re-measure in compose and I get that confused with measuring last.
Colton Idle
04/15/2021, 5:19 PM
I'll give it a whirl
👍 1
Colton Idle
04/15/2021, 7:19 PM
@Adam Powell that worked! Related... fill param isn't provided in the xml system right? So how would I have solved it there? I've been doing xml for so long, and now I haven't done it for 6 months and I'm just confused how I maybe wasn't able to get something so basic working.