Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MoveAnimation direction changes #8

Open
birjubhatt opened this issue Apr 23, 2018 · 0 comments
Open

MoveAnimation direction changes #8

birjubhatt opened this issue Apr 23, 2018 · 0 comments

Comments

@birjubhatt
Copy link

birjubhatt commented Apr 23, 2018

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 ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant