简体   繁体   中英

detect if scrollview has reached the bottom titanium

I need to detect if the scrollview has reached the bottom when the user scrolls down so i can load more data in tho it? How can i do this the best way? i have tried:

scrollView.addEventListener("scrollend", function(e){
    b = 10;
    AddList();
});

But i't does not solve my problem because it loads data into the scroll when the scrollview stops scrolling and only works in IOS and i need it to work also in android.

I'm not using the alloy folder

You are looking for the infinite scroll (facebook timeline, instagram feed, etc;) Without a doubt this module works best for iOS & Android, plus the documentation is clear. Works with Alloy & Classic Titanium: https://github.com/FokkeZB/nl.fokkezb.infiniteScroll

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM