https://kotlinlang.org logo
#compose
Title
# compose
i

Ink

08/17/2021, 11:05 PM
Copy code
Column {
    Row()
    LazyColumn()
}
How Can I make my Row scrollable? I want to scroll Row in the same time when I'm scrolling LazyColumn
l

Luis

08/17/2021, 11:16 PM
Look into the
scrollable()
modifier for the Row(). The LazyColumn already has state that includes its scroll state, so you can use both to sync each other
1
a

Alexandre Elias [G]

08/17/2021, 11:30 PM
Consider removing the
Column
, and doing
Copy code
LazyColumn {
  item {
    Row()
  }
  items(elements) { element ->
    // main LazyColumn content
  }
}
👍 2
l

Luis

08/17/2021, 11:57 PM
Ah I totally misinterpreted that! Thank you @Alexandre Elias [G]
i

Ink

08/18/2021, 11:13 PM
@Alexandre Elias [G] Thank you! Works great
6 Views