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

Mathew xu

08/17/2022, 2:21 PM
how to select all item in lazycolumn . I encounter a problem, the visible item can’t not be selected, but it will selected when I scolling. how to solve the problem?
m

Marko Novakovic

08/17/2022, 4:05 PM
I would need to take a look at the code first
BUT
state is not changing so it’s not recomposing until you scroll
change state, which will trigger recomposition and then you will see the changes
j

John Nichol

08/17/2022, 8:09 PM
or the state is not remembered correctly and so is not triggering recomposition. But as @Marko Novakovic says hard to tell without seeing code
m

Mathew xu

08/20/2022, 7:02 AM
thanks
2 Views