Is there any way to force all items in a Row to show? For example, if I have a row with text and a c...
c
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
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.
and definitely be aware of the "fill" parameter to the weight modifier, which can let you tweak behavior even further
c
"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.
I'll give it a whirl
👍 1
@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.