打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Swipe Down To Refresh ListView With Delphi XE5 Firemonkey On Android And IOS | Delphi XE5 XE6 XE7 XE

Embarcadero has some sample code up which shows you how to do a pull or swipe down to refresh a TListView. A lot of mobile apps like Facebook use this functionality instead of having a refresh button. It saves screen real estate by not having an extra button to deal with. The idea is that you are at the top of the list and you put your finger down on the list and swipe or pull down. The list drags down and then you show a activity spinner above the list. Once the update is complete and the list gets updated the activity spinner goes away. The blog post talks about being for IOS but this will work on both Android and IOS. The code is simple enough and just checks the ScrollViewPos property of TListView. Take a look:

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
delphi xe6 android ListView增加 Header或Footer 的方法
delphi XE10 安卓开发环境配置2
Delphi XE11.1在安卓上部署自己的文件
JQUERY MOBILE 控件的一些refresh
OrangeUI
delphi XE2 回到古老的 delphi7 桌面方法。。。
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服