Based on this example I want to display data per page of 20 items.
When ReachEnd it will be loading to the next page. But how to handle this because when I scroll down, 3 items at once appear, how can I order 1 item that appears. This will disrupt the page that I will use, when scroll down, will appear 3 x 20 items.
Store the last ReachEnd event time and ignore events that happen too frequently:
B4X:
Sub ReachEnd
If DateTime.Now < LastReachEndTime + 3 * DateTime.TicksPerSecond Then Return
LastReachEndTime = DateTime.Now 'LastReachEndTime is a Long global variable.