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); }
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); }