예제 #1
0
        public BaseViewAnimator Start()
        {
            Prepare(view);
            ResetAnimations(AlphaFromZero);

            if (PauseAfter == 0)        // Must manually restart if Pause After
            {
                if (RepeatMode == ValueAnimatorRepeatMode.Restart ||
                    RepeatMode == ValueAnimatorRepeatMode.Reverse)
                {
                    foreach (ObjectAnimator animator in AnimatorAgent.ChildAnimations)
                    {
                        if (animator == null)
                        {
                            continue;
                        }

                        animator.RepeatMode  = RepeatMode;
                        animator.RepeatCount = RepeatCount;
                    }
                }
            }

            AnimatorAgent.SetDuration(Duration);
            AnimatorAgent.Start();
            return(this);
        }
예제 #2
0
 public void Start()
 {
     AnimatorAgent.SetDuration(Duration);
     AnimatorAgent.Start();
 }