FragmentAnimations
FragmentAnimations copied to clipboard
MoveAnimation direction changes
your library is good and working well my problame is i want use move in and move out animation with your library...
@Override public Animation onCreateAnimation(int transit, boolean enter, int nextAnim) {
if (enter) {
return MoveAnimation.create(MoveAnimation.RIGHT, enter, 500);
} else {
return MoveAnimation.create(MoveAnimation.RIGHT, enter, 500);
}
}
i use this for fade in write perfect....but when i use BACKBUTTON then that out with right
if i use
if (enter) { return MoveAnimation.create(MoveAnimation.RIGHT, enter, 500); } else { return MoveAnimation.create(MoveAnimation.LEFT, enter, 500); }
for exit whenever i replace my fragment then fregment is close with left and second open with right
so thats the wrong method i follow...
how can i open all fragment from right and press backbutton close from right ???