public void SetActivity (bool active)
{
if (active){
activity.StartAnimating ();
arrowView.Hidden = true;
SetStatus (RefreshViewStatus.Loading);
} else {
activity.StopAnimating ();
arrowView.Hidden = false;
}
}
}
void TriggerRefresh(bool showStatus) { if (refreshRequested == null) { return; } if (reloading) { return; } reloading = true; if (refreshView != null) { refreshView.SetActivity(true); } refreshRequested(this, EventArgs.Empty); if (reloading && showStatus && refreshView != null) { UIView.BeginAnimations("reloadingData"); UIView.SetAnimationDuration(0.2); TableView.ContentInset = new UIEdgeInsets(60, 0, 0, 0); UIView.CommitAnimations(); } }