public void animar2(Java.Lang.Object imagen)
 {
     RunOnUiThread(() =>
     {
         Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "scaleX", 0.5f, 1f);
         animacion.SetDuration(700);
         animacion.Start();
     });
 }
 public void animar(Java.Lang.Object imagen)
 {
     Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "scaleX", 0.5f, 1f);
     animacion.SetDuration(300);
     animacion.Start();
     Android.Animation.ObjectAnimator animacion2 = Android.Animation.ObjectAnimator.OfFloat(imagen, "scaleY", 0.5f, 1f);
     animacion2.SetDuration(300);
     animacion2.Start();
 }
 public static void AnimateFAB(Java.Lang.Object animationTarget)
 {
     Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(animationTarget, "scaleX", 0f, 1f);
     animacion.SetDuration(510);
     animacion.Start();
     Android.Animation.ObjectAnimator animacion2 = Android.Animation.ObjectAnimator.OfFloat(animationTarget, "scaleY", 0f, 1f);
     animacion2.SetDuration(510);
     animacion2.Start();
 }
Пример #4
0
 public void animar7(Java.Lang.Object imagen)
 {
     Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "translationY", 0, 1000);
     animacion.SetDuration(500);
     animacion.Start();
     animacion.AnimationEnd += delegate
     {
         layoutmenues.Visibility = ViewStates.Invisible;
     };
 }
 public void animar6(View imagen)
 {
     imagen.SetLayerType(LayerType.Hardware, null);
     Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "translationX", 1000, 0);
     animacion.SetDuration(150);
     animacion.Start();
     animacion.AnimationEnd += delegate
     {
         imagen.SetLayerType(LayerType.None, null);
     };
 }
 public void animar5(View imagen, int pos, ImageView fondo, Bitmap img)
 {
     imagen.SetLayerType(LayerType.Hardware, null);
     Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "translationY", 1000, 0);
     animacion.SetDuration(250);
     animacion.Start();
     animacion.AnimationEnd += delegate
     {
         imagen.SetLayerType(LayerType.None, null);
     };
 }
Пример #7
0
 public void animar3(View imagen)
 {
     imagen.SetLayerType(LayerType.Hardware, null);
     Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "alpha", 0f, 1f);
     animacion.SetDuration(220);
     animacion.Start();
     animacion.AnimationEnd += delegate
     {
         imagen.SetLayerType(LayerType.None, null);
     };
 }
Пример #8
0
 public void animar3(View imagen)
 {
     imagen.SetLayerType(LayerType.Hardware, null);
     animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "alpha", 0.2f, 1f);
     animacion.SetDuration(1000);
     animacion.RepeatCount = int.MaxValue - 30;
     animacion.RepeatMode  = Android.Animation.ValueAnimatorRepeatMode.Reverse;
     animacion.Start();
     animacion.AnimationEnd += delegate
     {
     };
 }
Пример #9
0
        public void animarxd(Java.Lang.Object imagen)
        {
            var ax = (ImageView)imagen;

            ax.Visibility = ViewStates.Visible;
            Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "scaleX", 0f, 1f);
            animacion.SetDuration(400);
            animacion.Start();
            Android.Animation.ObjectAnimator animacionx = Android.Animation.ObjectAnimator.OfFloat(imagen, "scaleY", 0f, 1f);
            animacionx.SetDuration(400);
            animacionx.Start();
        }
        public void animar2(Java.Lang.Object imagen, Intent intento)
        {
            Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "alpha", 1, 1);
            animacion.SetDuration(500);


            animacion.Start();
            animacion.AnimationEnd += delegate
            {
                this.Finish();
                StartActivity(intento);
            };
        }
 public void animar3(View imagen)
 {
     imagen.SetLayerType(LayerType.Hardware, null);
     Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "alpha", 0f, 1f);
     animacion.SetDuration(220);
     animacion.Start();
     animacion.AnimationEnd += delegate
     {
         imagen.SetLayerType(LayerType.None, null);
     };
     //Your adapter views to re-use
     //public TextView Title { get; set; }
 }
Пример #12
0
 public void animar5(View imagen)
 {
     RunOnUiThread(() =>
     {
         imagen.SetLayerType(LayerType.Hardware, null);
         Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "translationY", 1000, 0);
         animacion.SetDuration(500);
         animacion.Start();
         animacion.AnimationEnd += delegate
         {
             imagen.SetLayerType(LayerType.None, null);
             if (Build.VERSION.SdkInt >= BuildVersionCodes.JellyBeanMr1)
             {
                 fondo.SetImageBitmap(CreateBlurredImage(20, linkvid));
             }
         };
     });
 }
Пример #13
0
        /// <summary>
        /// //////////////////////////////////////////////////////////////////voids///////////////////////////////////////////////////////////////////////
        /// </summary>
        ///

        public void animar4(Java.Lang.Object imagen)
        {
            Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "translationY", 1000, 0);
            animacion.SetDuration(500);
            animacion.Start();
        }
 public void animar3(Java.Lang.Object imagen)
 {
     Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "alpha", 1, 0);
     animacion.SetDuration(500);
     animacion.Start();
 }
 public void animar4(Java.Lang.Object imagen, int duracion)
 {
     Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "alpha", 0, 1);
     animacion.SetDuration(duracion);
     animacion.Start();
 }
 public static void ScaleXAnimation(Java.Lang.Object imagen)
 {
     Android.Animation.ObjectAnimator animacion = Android.Animation.ObjectAnimator.OfFloat(imagen, "scaleX", 0.5f, 1f);
     animacion.SetDuration(700);
     animacion.Start();
 }