如何实现“向下滑动刷新"就像在新的 GMail 应用程序中一样 [英] How to implement "Swipe down to refresh" like in new GMail app

查看:19
本文介绍了如何实现“向下滑动刷新"就像在新的 GMail 应用程序中一样的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Google 发布了新的 Gmail 应用程序,其中包含一种处理下拉刷新的替代方法.

Google release the new Gmail app with an alternate way to handle pull down to refresh.

而不是显示下拉的开始隐藏行.Gmail 在操作栏上方显示一条动画消息.

Instead of showing the started hidden row that is pulled down. Gmail displays an animated message overtop of the action bar.

该消息包含一条动画水平线.

The message includes an animated horizontal line.

这是 Android SDK 的标准功能吗?我在操作栏 API 中找不到可以执行此操作的任何内容.

Is this a standard feature of the Android SDK? I can't find anything in the action bar API that would do this.

推荐答案

GitHub 上 Chris Banes 的 ActionBar-PullToRefresh 库可能提供最接近 GMail 应用的下拉刷新功能.

Chris Banes' ActionBar-PullToRefresh library on GitHub probably offers pull-to-refresh functionality closest to GMail app.

另见:Juhani Lehtimäki 对 GMail pull-to-refresh 的分析.

这篇关于如何实现“向下滑动刷新"就像在新的 GMail 应用程序中一样的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆