Esempio n. 1
0
        public unsafe DrawableCrossFadeFactory(global::Android.Views.Animations.Animation p0, int p1)
            : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer)
        {
            if (Handle != IntPtr.Zero)
            {
                return;
            }

            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);
                if (GetType() != typeof(DrawableCrossFadeFactory))
                {
                    SetHandle(
                        global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Landroid/view/animation/Animation;I)V", __args),
                        JniHandleOwnership.TransferLocalRef);
                    global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Landroid/view/animation/Animation;I)V", __args);
                    return;
                }

                if (id_ctor_Landroid_view_animation_Animation_I == IntPtr.Zero)
                {
                    id_ctor_Landroid_view_animation_Animation_I = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/view/animation/Animation;I)V");
                }
                SetHandle(
                    global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_view_animation_Animation_I, __args),
                    JniHandleOwnership.TransferLocalRef);
                JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Landroid_view_animation_Animation_I, __args);
            } finally {
            }
        }
        static IntPtr n_CrossFade_Landroid_view_animation_Animation_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1)
        {
            global::Com.Bumptech.Glide.DrawableRequestBuilder __this = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.DrawableRequestBuilder> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
            global::Android.Views.Animations.Animation        p0     = global::Java.Lang.Object.GetObject <global::Android.Views.Animations.Animation> (native_p0, JniHandleOwnership.DoNotTransfer);
            IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.CrossFade(p0, p1));

            return(__ret);
        }
Esempio n. 3
0
        protected override void OnElementChanged(ElementChangedEventArgs <ContentView> e)
        {
            base.OnElementChanged(e);
            global::Android.Views.Animations.Animation a = AnimationUtils.LoadAnimation(_context, Resource.Drawable.fade_in);
            a.Reset();


            this.ClearAnimation();
            this.StartAnimation(a);
        }
Esempio n. 4
0
 private void CurrentAnimation_AnimationEnd(object sender, global::Android.Views.Animations.Animation.AnimationEndEventArgs e)
 {
     if (_currentAnimation != null)
     {
         _currentAnimation.AnimationEnd -= CurrentAnimation_AnimationEnd;
         _currentAnimation.Dispose();
         _currentAnimation = null;
     }
     _target.Invalidate();
 }
        public virtual unsafe void OnAnimationEnd(global::Android.Views.Animations.Animation animation)
        {
            const string __id = "onAnimationEnd.(Landroid/view/animation/Animation;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((animation == null) ? IntPtr.Zero : ((global::Java.Lang.Object)animation).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
Esempio n. 6
0
        public unsafe void SetInfoWindowShowAnimation(global::Android.Views.Animations.Animation p0)
        {
            const string __id = "setInfoWindowShowAnimation.(Landroid/view/animation/Animation;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
Esempio n. 7
0
        protected override void OnElementPropertyChanged(object sender, PropertyChangedEventArgs e)
        {
            base.OnElementPropertyChanged(sender, e);
            if (e.PropertyName == LoadingOverlay.IsVisibleProperty.PropertyName)
            {
                if (!Element.IsVisible)
                {
                    global::Android.Views.Animations.Animation a = AnimationUtils.LoadAnimation(_context, Resource.Drawable.fade_out);
                    a.Reset();


                    this.ClearAnimation();
                    this.StartAnimation(a);
                }
            }
        }
 static void n_OnAnimationRepeat_Landroid_view_animation_Animation_(IntPtr jnienv, IntPtr native__this, IntPtr native_animation)
 {
     global::Com.Github.Sundeepk.Compactcalendarview.AnimationListener __this = global::Java.Lang.Object.GetObject <global::Com.Github.Sundeepk.Compactcalendarview.AnimationListener> (jnienv, native__this, JniHandleOwnership.DoNotTransfer);
     global::Android.Views.Animations.Animation animation = global::Java.Lang.Object.GetObject <global::Android.Views.Animations.Animation> (native_animation, JniHandleOwnership.DoNotTransfer);
     __this.OnAnimationRepeat(animation);
 }
        public virtual unsafe global::Com.Bumptech.Glide.DrawableRequestBuilder CrossFade(global::Android.Views.Animations.Animation p0, int p1)
        {
            if (id_crossFade_Landroid_view_animation_Animation_I == IntPtr.Zero)
            {
                id_crossFade_Landroid_view_animation_Animation_I = JNIEnv.GetMethodID(class_ref, "crossFade", "(Landroid/view/animation/Animation;I)Lcom/bumptech/glide/DrawableRequestBuilder;");
            }
            try {
                JValue *__args = stackalloc JValue [2];
                __args [0] = new JValue(p0);
                __args [1] = new JValue(p1);

                global::Com.Bumptech.Glide.DrawableRequestBuilder __ret;
                if (GetType() == ThresholdType)
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.DrawableRequestBuilder> (JNIEnv.CallObjectMethod(Handle, id_crossFade_Landroid_view_animation_Animation_I, __args), JniHandleOwnership.TransferLocalRef);
                }
                else
                {
                    __ret = global::Java.Lang.Object.GetObject <global::Com.Bumptech.Glide.DrawableRequestBuilder> (JNIEnv.CallNonvirtualObjectMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "crossFade", "(Landroid/view/animation/Animation;I)Lcom/bumptech/glide/DrawableRequestBuilder;"), __args), JniHandleOwnership.TransferLocalRef);
                }
                return(__ret);
            } finally {
            }
        }
Esempio n. 10
0
        public unsafe global::Com.Tencent.Mapsdk.Raster.Model.MarkerOptions SetShowingAnination(global::Android.Views.Animations.Animation p0)
        {
            const string __id = "setShowingAnination.(Landroid/view/animation/Animation;)Lcom/tencent/mapsdk/raster/model/MarkerOptions;";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod(__id, this, __args);
                return(global::Java.Lang.Object.GetObject <global::Com.Tencent.Mapsdk.Raster.Model.MarkerOptions> (__rm.Handle, JniHandleOwnership.TransferLocalRef));
            } finally {
            }
        }