iamthevoid
12/10/2021, 8:40 AMfillMax...
looks pretty the same, but when it applied to child of container, that doesn’t have exact size, then child stretch the parent
when i used view framework i can did like
parent(wrap_content) {
child(match_parent) // 1
child(exact_size) // 2
}
and size of 1
was always the same as size of 2
. And when size of 2
changes size of 1
changes as well. Can i do the same in Compose?Albert Chang
12/10/2021, 8:44 AMTgo1014
12/10/2021, 8:44 AMiamthevoid
12/10/2021, 8:45 AMparent(modifier = Modifier.height(IntrinsicSize.Min)) {
child(modifier = Modifier.fillMaxHeight()) // 1
child(modifier = Modifier.height(exact)) // 2
}
But size of 1 doesn’t change when size of 2 doJulianK
12/10/2021, 9:11 AMiamthevoid
12/10/2021, 9:21 AMwrap content
size, but it is less indeterminate, than parent size or child 1
size