Hello, how can I tell Compose to draw child content "from the bottom" if the parent height is smaller than the child content height ?
Depending on the scrolling of the RecyclerView (we are migrating 🙈), I "expand" the ComposeView to "reveal" the content. Problem is, the content is drawn from top to bottom and I can't find a way to change it
on the Column doesn't work.
He's my code for the Composable
Copy code
Column(
modifier = Modifier
.height(height), // height is dynamic depending on RecyclerView's scroll
verticalArrangement = Arrangement.Bottom
) {
Text(
modifier = Modifier.fillMaxWidth(),
textAlign = TextAlign.Center,
text = uiState.index
)
Text(
modifier = Modifier.fillMaxWidth(),
textAlign = TextAlign.Center,
text = "This should be seen last when scrolling down",
)
Text(
modifier = Modifier.fillMaxWidth(),
textAlign = TextAlign.Center,
text = "This should be seen first when scrolling down",
)
}
v
Vazha Kentchiashvili
10/12/2024, 8:00 AM
Hi, ask here too #C04TPPEQKEJ
g
Greg Rami
10/12/2024, 10:03 AM
Have you tried Spacer(Modifier.weight(1f)) to push content to the bottom?