Code example for AccelerateInterpolator

 * or on the DevBytes playlist in the androiddevelopers channel on YouTube at 
public class SquashAndStretch extends Activity {
    private static final AccelerateInterpolator sAccelerator = new AccelerateInterpolator();
    private static final DecelerateInterpolator sDecelerator = new DecelerateInterpolator();
    ViewGroup mContainer = null;
    private static final long BASE_DURATION = 300;
    private long sAnimatorScale = 1;
    protected void onCreate(Bundle savedInstanceState) {
        mContainer = (ViewGroup) findViewById(;
Connect your IDE to all the code out there  Get Codota for Java