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

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

问题描述

谷歌发布新的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.

推荐答案

克里斯·巴内斯'动作条,PullToRefresh GitHub上库可能提供拉来刷新最接近Gmail应用。功能

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

参见:GMail的拉来刷新尤哈尼Lehtimäki的分析

See also: Juhani Lehtimäki's analysis of GMail pull-to-refresh.

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

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