I need to create an application with 4 view. I need to pass from a view to an other simply by a touch and a move to the left or to the right (no button). The effect I would like
I think you can use layout animation for the purpose..
res/anim/popin.xml:
res/anim/popinlayout.xml:
Source:
// Applying a Layout Animation and Animation Listener
aViewGroup.setLayoutAnimationListener(new AnimationListener() {
public void onAnimationEnd(Animation _animation) {
// TODO: Actions on animation complete.
}
public void onAnimationRepeat(Animation _animation) {}
public void onAnimationStart(Animation _animation) {}
});
aViewGroup.scheduleLayoutAnimation();