Yingding Wang
01/04/2023, 2:08 PMhorizontalScroll
modifier to the androidx.wear.compose.material.dialog.Alert
and got an IllegalArgumentException
It appears to me, horizontalScroll
modifier applied on the parent composable of a ScalingLazyColumn
will raise the IllegalArgumentException, what is the reason for that?
On the contrary, the horizontalScroll
modifier applied on the child composable in the item
of SLC is fine.John Nichol
01/04/2023, 2:38 PMJohn Nichol
01/04/2023, 2:39 PMYingding Wang
01/04/2023, 4:21 PMval hasChildSLC = false
to
val hasChildSLC = true
and see the different effects.stevebower
01/10/2023, 11:24 AMYingding Wang
01/10/2023, 12:42 PMhorizontalScroll
modifier.
What I would like to do is something like a horizontal scrollable calendar or heart rate graphic with multiple scrollable column. I prototyped with a horizontal scrollable Box
and ScalingLazyColumn
inside the Box. It doesn’t seem to compile. Now I switched to the implementation with a ScalingLazyColumn
with multiple horizontalScroll graphic inside.
I am just curious whether it is technically feasible to do a horizontalScroll and then use multiple SLC for vertical Scrolling in general.stevebower
01/10/2023, 1:06 PMYingding Wang
01/10/2023, 1:43 PMIllegal ArgumentException
when SLC
is wrapped inside a parent composable with horizontalScroll
, it is sometimes difficult to find out which composable contains SLC.
Can SLC just ignore the horizontalScroll conflict, and print a Warning instead of raise an exception? Does this make sense?stevebower
01/10/2023, 3:01 PMYingding Wang
01/10/2023, 3:20 PMBox(
modifier = Modifier.horizontalScroll(horizontalScrollState), // doesn't work
) {
ScalingLazyColumn {
item {
Text("hi")
}
}
}
stevebower
01/13/2023, 4:37 PM