ActionBar下的ProgressBar,就像上一次GMail应用程序更新一样

Que*_*eau 12 gmail android user-experience progress-bar pull-to-refresh

我想建议重现我们可以在bar动作下的最后一个gmail更新中找到的最后一次刷新.谢谢你的支持.

我想,我必须在ListView上使用onScroll处理程序

public void onScroll(AbsListView absListView, int firstVisible, int visibleCount, int totalCount)
Run Code Online (Sandbox Code Playgroud)

并计算一个比率来检测顶部过度滚动?

但是如何重现相同的刷新动画(虚线,在x轴上重复)?

这里有一些截图.


正常状态

拉州

刷新状态