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
Marko Novakovic
08/17/2022, 4:05 PM
BUT
Marko Novakovic
08/17/2022, 4:05 PM
state is not changing so it’s not recomposing until you scroll
Marko Novakovic
08/17/2022, 4:05 PM
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