Relative Content

Tag Archive for androidkotlinandroid-jetpack-composelazycolumn

How to update the counter in LazyColumn items that are out of focus?

I have a LazyColumn list where, when an element is added, a timer starts counting in it, but when I start scrolling the list, elements that go out of focus at the top stop the timer and continue to work only when this element appears in focus, I know that there is no direct way in Compose Continue updating the state of items that are outside the visible list area. When an element goes out of visibility, the virtual scroller reuses its composition for other elements in the scroll area, and it can only be redrawn or rebuilt when the scroll area is re-entered, however there is a way to update the values ​​of elements in RecyclerView, but how do I do this in compose

jetpack compose – shared scrollstates with lazyrow and columns

Im able to get my lazyrows on the right to vertically scroll with my lazycolumn on the left. The lazyrow will vertically scroll individually but when i try to get only the multiple lazyrows to scroll together it wont vertically scroll at all. why can it do it individually but not all at once?