Delphi 10 - Load data when scrolling listview down

1

Good afternoon! I apologize if this subject is in discussion in another area of the forum, but I spent many hours looking for this tip and found nowhere. I ended up finding it by browsing the listview libraries. The listview has a property called PullRefresh. So far it's all right, theoretically, should work, by setting the ScrollViewPos to a negative value, I saw in some places talking to puts it like this: ScrollViewPos < -40. There is a video of a dedicated programmer teaching to modify the unit FMX.Platform.Android.pas, for me it worked well until I migrate to Delhpi Tokyo, there began my despair, kkk. Well let's go to what matters, in IOs this works without problems, but on Android, I'll give the hint, on Android ScrollViewPos never gets smaller than zero, I did not understand the reason, but it starts at 12 or instead of zero, to work, do the test like this: if ScrollViewPos < 12 then begin your code here end; Incredible as it may seem, that's all. I hope I have helped someone with the tip Stay in peace, Eduardo Gomes.

    
asked by anonymous 10.11.2017 / 20:10

0 answers