Second row is using only fraction of a screen I want it to use full
But if I change Column width to e.g. 400.dp I can manipulate really good with width
I have LazyRow to scroll horizontally with modifier fillMaxWidth
and inside this:
Column(
modifier = Modifier
.fillMaxWidth()
.padding(8.dp),
) {
Row(
modifier = Modifier
.fillMaxWidth()
.background(Color.Red)
.padding(horizontal = 16.dp, vertical = 8.dp),
horizontalArrangement = Arrangement.spacedBy(2.dp),
verticalAlignment = Alignment.CenterVertically,
) {
Row(
Modifier
.fillMaxWidth()
.background(Color.Blue),
horizontalArrangement = Arrangement.spacedBy(2.dp),
) {
// ...
}
}
}
I need two rows, one above the other.
I tried with fixed width in column and it works good but I want a dynamic width.
Recognized by Mobile Development Collective
New contributor
Zvonimir Brleković is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.