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

时间:2013-06-06 00:14:58

标签: android gmail progress-bar user-experience pull-to-refresh

我想建议重现我们在bar操作下的最后一次gmail更新中可以找到的最后一次刷新。感谢您的支持。

我想,我必须通过

在ListView上使用onScroll处理程序
public void onScroll(AbsListView absListView, int firstVisible, int visibleCount, int totalCount)

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

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

这里有一些截图。


Normal state

Pull state

Refresh state

0 个答案:

没有答案