tad
06/01/2021, 12:12 AMtad
06/01/2021, 12:13 AM@Preview
@Composable
fun CollapsingHeaderPreview() {
Column(
Modifier
.background(Color.White)
.height(176.dp)
) {
Box(
Modifier
.heightIn(56.dp, 128.dp)
.fillMaxWidth()
.background(Color.Red.copy(alpha = 0.5f))
)
Box(
Modifier
.height(48.dp)
.fillMaxWidth()
.background(Color.Green.copy(alpha = 0.5f))
)
}
}
tad
06/01/2021, 12:14 AMweight
in the first Box
, it disregards heightIn
and fills the remaining space regardless.Albert Chang
06/01/2021, 12:28 AMfillMaxWidth()
on the first Box
to fillMaxSize()
?tad
06/01/2021, 1:12 AM