public void showBack() { AnimationFactory.flipTransition(mViewAnimator, FlipDirection.LEFT_RIGHT); isShowingBack = true; }
/** * Flip to the next view of the {@code ViewAnimator}'s subviews. A call to this method will * initiate a {@link FlipAnimation} to show the next View. If the currently visible view is the * last view, flip direction will be reversed for this transition. * * @param viewAnimator the {@code ViewAnimator} * @param dir the direction of flip */ public static void flipTransition(final ViewAnimator viewAnimator, FlipDirection dir) { flipTransition(viewAnimator, dir, DEFAULT_FLIP_TRANSITION_DURATION); }
public void showFront() { if (isShowingBack) { AnimationFactory.flipTransition(mViewAnimator, FlipDirection.LEFT_RIGHT); } isShowingBack = false; }