0

I'm trying to use Chris Banes' ActionBar-PullToRefresh in an app. I've got it working for the most part, but I can't see where I'm supposed to set the animation for displaying the headerView. On the customization page of the github repo it says to use PullToRefresh.Options and set the headerInAnimation/headerOutAnimation values, but I can't see any references to them in the project.

4

2 回答 2

1

当你的工作完成后试试这个,你会隐藏 Indeterminate progresseBar :

mPullToRefreshAttacher.setRefreshComplete();
于 2013-10-21T07:51:36.630 回答
0

您不需要手动触发动画。只需在 pullToRefreshLayout 上调用 setRefreshComplete。

 mPullToRefreshLayout.setRefreshComplete();

该栏被隐藏并触发动画。

于 2014-02-24T15:26:32.557 回答