예제 #1
0
        void AnimateButtonClick(View view)
        {
            Context   context = view.Context;
            Animation anim    = AnimationUtils.LoadAnimation(context, Resource.Animation.bounceScaleAnimation);
            ScaleBounceInterpolator scaleBounceInterpolator = new ScaleBounceInterpolator(0.2, 5);

            anim.Interpolator = scaleBounceInterpolator;
            view.StartAnimation(anim);
        }
예제 #2
0
            public void OnClick(View v)
            {
                Button    view    = (Button)v;
                Context   context = view.Context;
                Animation anim    = AnimationUtils.LoadAnimation(context, Resource.Animation.bounceScaleAnimation);
                ScaleBounceInterpolator scaleBounceInterpolator = new ScaleBounceInterpolator(0.1, 10);

                anim.Interpolator = scaleBounceInterpolator;
                view.StartAnimation(anim);
            }