Ejemplo n.º 1
0
 public void ShowProcessing()
 {
     action = new Java.Lang.Runnable(() => RepeatAnimation());
     //if (avdProgress == null)
     //{
     avdProgress           = Android.Support.Graphics.Drawable.AnimatedVectorDrawableCompat.Create(this, Resource.Drawable.avd_line);
     loadingBar.Background = avdProgress;
     //}
     loadingBar.Visibility = ViewStates.Visible;
     RepeatAnimation();
 }
Ejemplo n.º 2
0
 public AnimationHelper(Context context, ImageView basketImg, ImageView smallBlinkingMic)
 {
     try
     {
         Context                = context;
         SmallBlinkingMic       = smallBlinkingMic;
         BasketImg              = basketImg;
         AnimatedVectorDrawable = AnimatedVectorDrawableCompat.Create(context, Resource.Drawable.recv_basket_animated);
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
Ejemplo n.º 3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.Main);

            var avd = AnimatedVectorDrawableCompat.Create(this, Resource.Drawable.avd_endless_pin_jump);
            var iv  = FindViewById <ImageView>(Resource.Id.pin);

            iv.SetImageDrawable(avd);
            avd.RegisterAnimationCallback(new AnimatedCallback(iv, avd));
            avd.Start();
        }
Ejemplo n.º 4
0
 public AnimatedCallback(ImageView iv, AnimatedVectorDrawableCompat avd)
 {
     imageView      = iv;
     vectorDrawable = avd;
 }