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(;
Stop searching for code, let great code find you!  Add Codota to your java IDE