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);
     };
 }
Exemple #2
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);
     };
 }
 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);
     };
 }
 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; }
 }
Exemple #5
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));
             }
         };
     });
 }