Esempio n. 1
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. 2
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);
                }
            }
        }