Если вам это нравится, вы будете полностью контролировать анимацию и перелистывание страниц:
//ViewFlipper
ViewFlipper flipper;
//Four different animations
Animation OutToRight;
Animation OutToLeft;
Animation InFromRight;
Animation InFromLeft;
OutToRight = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, +1.0f,
Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f
);
OutToRight.setDuration(500);
OutToRight.setInterpolator(new AccelerateDecelerateInterpolator());
OutToLeft = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, -1.0f,
Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f
);
OutToLeft.setDuration(500);
OutToLeft.setInterpolator(new AccelerateDecelerateInterpolator());
InFromRight = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, +1.0f, Animation.RELATIVE_TO_PARENT, 0.0f,
Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f
);
InFromRight.setDuration(500);
InFromRight.setInterpolator(new AccelerateDecelerateInterpolator());
InFromLeft = new TranslateAnimation(
Animation.RELATIVE_TO_PARENT, -1.0f, Animation.RELATIVE_TO_PARENT, 0.0f,
Animation.RELATIVE_TO_PARENT, 0.0f, Animation.RELATIVE_TO_PARENT, 0.0f
);
InFromLeft.setDuration(500);
InFromLeft.setInterpolator(new AccelerateDecelerateInterpolator());
//Animating Left to page 1
flipper.setInAnimation(InFromLeft);
flipper.setOutAnimation(OutToRight);
flipper.setDisplayedChild(1);
//Animating right to page 2
flipper.setInAnimation(InFromRight);
flipper.setOutAnimation(OutToLeft);
flipper.setDisplayedChild(2);