Grzegorz Baczek
11/24/2020, 3:01 PMLazyRowFor
with elements whose width is equal to window width. And I'm trying to get currently visible item on the screen by using rememberLazyListState()
with firstVisibleItemIndex
. The problem is that whenever I reach the end of the list, this index is not updated. So the second to last item is fully hidden and only the last one is visible, but it still indicates second to last item. I've worked around it by adding 1 dp to the items width but it doesn't seem right. Also I've got question: is it possible in this case to make items adjust their position after each fling to the start of the screen? For example 3rd item is visible on the screen, I swipe from right to left and then 4th item enters from right side and gets snapped to the start of the screen, so it fill whole screen width.Andrey Kulikov
11/25/2020, 12:12 AMGrzegorz Baczek
11/25/2020, 1:27 PM