yaniv hanya Active Member Licensed User Jun 14, 2020 #1 What is the best way to recognize that the scroll has stopped in CustomListView
Erel B4X founder Staff member Licensed User Longtime User Jun 14, 2020 #2 B4X: Sub clv1_ScrollChanged (Offset As Int) ScrollChangedIndex = ScrollChangedIndex + 1 Dim MyIndex As Int = ScrollChangedIndex 'ScrollChangedIndex is a global int variable. Sleep(300) If MyIndex = ScrollChangedIndex Then 'Scroll stopped End If End Sub Upvote 0
B4X: Sub clv1_ScrollChanged (Offset As Int) ScrollChangedIndex = ScrollChangedIndex + 1 Dim MyIndex As Int = ScrollChangedIndex 'ScrollChangedIndex is a global int variable. Sleep(300) If MyIndex = ScrollChangedIndex Then 'Scroll stopped End If End Sub
yaniv hanya Active Member Licensed User Jun 15, 2020 #3 Thank you very much. It works great. I also tried something in that direction but couldn't get it right and make it work well Upvote 0
Thank you very much. It works great. I also tried something in that direction but couldn't get it right and make it work well
Erel B4X founder Staff member Licensed User Longtime User Jun 15, 2020 #4 The "index pattern" is very useful and is explained here: [B4X] Resumable subs and the index pattern Upvote 0