Code example for AccelerateInterpolator

0
        // The animation listener is used to trigger the next animation 
        final Rotate3dAnimation rotation =
                new Rotate3dAnimation(start, end, centerX, centerY, 310.0f, true);
        rotation.setDuration(500);
        rotation.setFillAfter(true);
        rotation.setInterpolator(new AccelerateInterpolator());
        rotation.setAnimationListener(new DisplayNextView(position));
 
        mContainer.startAnimation(rotation);
    } 
 
    public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
        // Pre-load the image then start the animation 
        mImageView.setImageResource(PHOTOS_RESOURCES[position]);
        applyRotation(position, 0, 90);
    } 
 
    public void onClick(View v) {
        applyRotation(-1, 180, 90); 
    } 
Stop searching for code, let great code find you!  Add Codota to your java IDE