Esempio n. 1
0
 public void showBack() {
   AnimationFactory.flipTransition(mViewAnimator, FlipDirection.LEFT_RIGHT);
   isShowingBack = true;
 }
Esempio n. 2
0
 /**
  * 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);
 }
Esempio n. 3
0
 public void showFront() {
   if (isShowingBack) {
     AnimationFactory.flipTransition(mViewAnimator, FlipDirection.LEFT_RIGHT);
   }
   isShowingBack = false;
 }