Code example for Activity

Methods: finishoverridePendingTransition

0
			public void onAnimationRepeat(Animation animation) {
			} 
 
			@Override 
			public void onAnimationEnd(Animation animation) {
				mActivity.finish();
				mActivity.overridePendingTransition(0, 0);
			} 
		}); 
	} 
 
	private static final int DURATION_MS = 400;
	private ImageView mCover;
	private Activity mActivity;
	private boolean mReverse = false;
	private Animation mStartAnimation;
	private Animation mStopAnimation;
} 
Contextual code suggestions in your IDE  Get Codota for Java