Colton Idle
05/21/2021, 3:34 AMTin Tran
05/21/2021, 3:35 AMfillMaxWidth(.5f)
and the other fillMaxWidth()
Colton Idle
05/21/2021, 3:35 AMRow {
Button({}, modifier = Modifier.fillMaxWidth()){ Text("1")}
Button({}, modifier = Modifier.fillMaxWidth()){ Text("2000000")}
}
but I just get button 1 showing.
Then doing this didn't do the trick either
Row {
Button({}, modifier = Modifier.fillMaxWidth(.5f)){ Text("1")}
Button({}, modifier = Modifier.fillMaxWidth(.5f)){ Text("2000000")}
}
Tin Tran
05/21/2021, 3:38 AMfillMaxWidth()
and the first one fillMaxWidth(.5f)
nglauber
05/21/2021, 3:44 AMModifier.weight(1.f)
on both buttonsColton Idle
05/21/2021, 3:47 AMAlbert Chang
05/21/2021, 4:06 AMModifier.weight()
, the parent lays out all children with a weight at last with all the knowledge of how much weight each of them want to take.Colton Idle
05/21/2021, 4:09 AMAlbert Chang
05/21/2021, 4:11 AMAlbert Chang
05/21/2021, 4:16 AMephemient
05/21/2021, 4:16 AMephemient
05/21/2021, 4:17 AMephemient
05/21/2021, 4:17 AMnglauber
05/21/2021, 12:19 PMLinearLayout
which follow the same approach 😊Chris Sinco [G]
05/21/2021, 4:47 PMwidth
and height
but often a combination of weight
and fillMax*(*f)
does the jobColton Idle
05/21/2021, 4:59 PMChris Sinco [G]
05/21/2021, 5:04 PM