Android的棒棒糖 - 拉刷新棒棒糖、Android

2023-09-05 05:38:46 作者:猫烠⑼条掵仅有一顆心

我想实现在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.