Example #1
0
        private void slideUp()
        {
            XViewPropertyAnimator.Animate(mView).SetStartDelay(1000).Alpha(0f)
            .TranslationY(-mView.Height + mTranslationY)
            .SetInterpolator(new AccelerateInterpolator())
            .SetDuration(300)
            .Start();

            mVisible = false;
        }
Example #2
0
        public LoadToast show()
        {
            if (!mInflated)
            {
                mShowCalled = true;
                return(this);
            }
            mView.show();
            ViewHelper.SetTranslationX(mView, (mParentView.Width - mView.Width) / 2);
            ViewHelper.SetAlpha(mView, 0f);
            ViewHelper.SetTranslationY(mView, -mView.Height + mTranslationY);
            //mView.SetVisibility(View.VISIBLE);
            XViewPropertyAnimator.Animate(mView).Alpha(1f).TranslationY(25 + mTranslationY)
            .SetInterpolator(new DecelerateInterpolator())
            .SetDuration(300).SetStartDelay(0).Start();

            mVisible = true;
            checkZPosition();

            return(this);
        }
Example #3
0
 static ViewPropertyAnimator Animate(View view)
 {
     return(ViewPropertyAnimator.Animate(view));
 }