J jdiperla Member Licensed User Longtime User May 27, 2013 #1 Is there a way to detect that a user scrolled to the end of the listview so that then the listview can add more items when it reaches the end? I am trying to do this so that I can add items progressively. Thanks in advance.
Is there a way to detect that a user scrolled to the end of the listview so that then the listview can add more items when it reaches the end? I am trying to do this so that I can add items progressively. Thanks in advance.
JesseW Active Member Licensed User Longtime User May 27, 2013 #2 personally, if I were going to do something like that, I'd use a scrollview so I can see and track the vertical position. there are examples on how to build a listview like control from a scrollview. good luck Upvote 0
personally, if I were going to do something like that, I'd use a scrollview so I can see and track the vertical position. there are examples on how to build a listview like control from a scrollview. good luck
J jdiperla Member Licensed User Longtime User May 27, 2013 #3 I do use scrollview in my app for other things. However, I believe the code concept would be the same for either the listview or scrollview and I much rather do this for listview if its possible as much of my code is already based on and works around the listview control. Upvote 0
I do use scrollview in my app for other things. However, I believe the code concept would be the same for either the listview or scrollview and I much rather do this for listview if its possible as much of my code is already based on and works around the listview control.
Erel B4X founder Staff member Licensed User Longtime User May 27, 2013 #4 You will need to use ScrollView as ListView doesn't expose the ScrollChanged event. You can use CustomListView class to replace ListView. Code: Copy If Position + ScrollView.Height >= ScrollView.Panel.Height Then 'reached the end Upvote 0
You will need to use ScrollView as ListView doesn't expose the ScrollChanged event. You can use CustomListView class to replace ListView. Code: Copy If Position + ScrollView.Height >= ScrollView.Panel.Height Then 'reached the end