MonoTouch.Dialog.RefreshTableHeaderView.SetActivity C# (CSharp) Method

SetActivity() public method

public SetActivity ( bool active ) : void
active bool
return void
		public void SetActivity (bool active)
		{
			if (active){
				activity.StartAnimating ();
				arrowView.Hidden = true;
				SetStatus (RefreshViewStatus.Loading);
			} else {
				activity.StopAnimating ();
				arrowView.Hidden = false;
			}
		}	
	}

Usage Example

示例#1
0
        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();
            }
        }
All Usage Examples Of MonoTouch.Dialog.RefreshTableHeaderView::SetActivity