简体   繁体   中英

Titanium appcelerator pull to refresh load data on scroll iOS and Android

哪个是用于“拉动刷新”和“在滚动中加载数据”的好小部件,可在tableview以及iOS和Android平台上使用?

You're looking for a Pull To Refresh Module/widget or lib. A quick google search would've showed you this.

https://github.com/FokkeZB/nl.fokkezb.pullToRefresh/

Example implementation (taken from github)

<Alloy>
    <Collection src="myCollection" />
    <Window>
        <Widget id="ptr" src="nl.fokkezb.pullToRefresh" onRelease="myRefresher">
            <ListView>
                <ListSection dataCollection="myCollection">
                    <ListItem title="{title}" />
                </ListSection>
            </ListView>
        </Widget>
    </Window>
</Alloy>

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