Code example for Activity

Methods: finishoverridePendingTransition

			public void onAnimationRepeat(Animation animation) {
			public void onAnimationEnd(Animation animation) {
				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;
Connect your IDE to all the code out there  Get Codota for Java