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(); }
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); } }
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(); }
public AnimatedCallback(ImageView iv, AnimatedVectorDrawableCompat avd) { imageView = iv; vectorDrawable = avd; }