Im using Chris Banes ActionBar-PullToRefresh. I can start refreshing by pulling the layout down - everything is fine.
But how can i programmatically force start refreshing animation (progress animation)? Or how can i force start full refreshing programmatically like if i pull the layout down?
Tried:
mPullToRefreshLayout.startLayoutAnimation();
mPullToRefreshLayout.setRefreshing(true);
mPullToRefreshLayout.setActivated(true);
Nothing worked.
The only thing i got to work is check for isRefreshing
and stop it:
if(mPullToRefreshLayout.isRefreshing()){
mPullToRefreshLayout.setRefreshComplete();
}
Please help.