Android的棒棒糖 - 拉刷新 [英] Android Lollipop - Pull to refresh

查看:107
本文介绍了Android的棒棒糖 - 拉刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现在Android中拉来刷新。我知道有 SwipeRefreshLayout 但像驱动器(见附件)的棒棒糖,我注意到有自带的视图时,一个新的刷新图标所有新设计的谷歌应用程序拉。我试着在网上,但徒劳寻找它。 已经在Android放出了本作的材料设计的一部分吗?任何关于如何实现它的想法?

I am trying to implement pull-to-refresh in Android. I know there is SwipeRefreshLayout but with all the newly designed Google apps like Drive (see attached) for Lollipop, I have noticed there is a new refresh icon that comes in the view when pulled. I tried looking it online but in vain. Has Android released this as a part of the Material Design? Any ideas about how to implement it?

编辑:有人指出,这是怎么如何实施拉来刷新。它是不一样的问题。你会看到它,如果你正确读取的问题。

Some people have pointed out how this is a duplicate of How to implement a Pull-to-refresh. It is not the same question. You'll see it if you read the question properly.

推荐答案

这是 SwipeRefreshLayout 。支持库的版本21包括它取代了旧的风格。

This is SwipeRefreshLayout . Version 21 of the support library includes it replacing the old style.

这篇关于Android的棒棒糖 - 拉刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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