Code example for AccelerateInterpolator

0
      set.addAnimation(fadeOut);
    } 
     
    set.addAnimation(anim);
    set.setDuration(speed);
    set.setInterpolator(new AccelerateInterpolator(1.0f));
    startAnimation(set);
  } 
   
  Animation.AnimationListener collapseListener=new Animation.AnimationListener() {
    public void onAnimationEnd(Animation animation) { 
      setVisibility(View.GONE); 
    } 
     
    public void onAnimationRepeat(Animation animation) { 
      // not needed 
    } 
     
    public void onAnimationStart(Animation animation) { 
      // not needed 
    }