void HideSwipeDown()
 {
     ActionBar.Show ();
     swipeText.Visibility = ViewStates.Invisible;
     bar1Fade = ObjectAnimator.OfInt (bar1, "progress", bar1.Progress, 0);
     bar1Fade.SetDuration (250);
     bar1Fade.Start ();
     bar2Fade = ObjectAnimator.OfInt (bar2, "progress", bar2.Progress, 0);
     bar2Fade.SetDuration (250);
     bar2Fade.Start ();
     bar2Fade.AnimationEnd += (sender, e) => loadingBars.Visibility = ViewStates.Gone;
     setup = false;
 }
Example #2
0
 private void showBubble()
 {
     bubble.Visibility = ViewStates.Visible;
     if(currentAnimator!=null)
         currentAnimator.Cancel();
     currentAnimator = (ObjectAnimator)ObjectAnimator.OfFloat(bubble, "alpha", 0f, 1f).SetDuration(BUBBLE_ANIMATION_DURATION);
     currentAnimator.Start();
 }
Example #3
0
 private void hideBubble()
 {
     if(currentAnimator != null)
         currentAnimator.Cancel();
     currentAnimator = (ObjectAnimator)ObjectAnimator.OfFloat(bubble,"alpha",1f,0f).SetDuration(BUBBLE_ANIMATION_DURATION);
     currentAnimator.AddListener(new MyListener(this));
     currentAnimator.Start();
 }
Example #4
0
 public void animar3(Java.Lang.Object imagen)
 {
     Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "translationY", 1000, 0);
     animacion.SetDuration(500);
     animacion.Start();
 }
		void Animate(LibraryHoloCircularProgressBar.HoloCircularProgressBar progressBar, Android.Animation.Animator.IAnimatorListener listener,float progress, int duration) {

			_progressBarAnimator = ObjectAnimator.OfFloat(progressBar, "progress", progress);
			_progressBarAnimator.SetDuration(duration);
			progressBar1 = progressBar;
			progress1 = progress;
			_progressBarAnimator.AddListener (this);
			if (listener != null) {
				_progressBarAnimator.AddListener(listener);
			}
			_progressBarAnimator.Reverse();
			_progressBarAnimator.AddUpdateListener (this);

			progressBar.SetMarkerProgress(progress);
			_progressBarAnimator.Start();
		}