Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Size animation moves layout 1px up each time #8

Open
theaspect opened this issue Mar 9, 2012 · 0 comments
Open

Size animation moves layout 1px up each time #8

theaspect opened this issue Mar 9, 2012 · 0 comments

Comments

@theaspect
Copy link

If we move layout back and forth in X direction it rises 1px up each time. So we need y+=1 to compensate it.

public void onOpenThird() {
    view.getAnimator().animate((HorizontalLayout) view, AnimType.SIZE).setDuration(150)
            .setData("width=+450,x=-450,y=+1");
    view.getAnimator().animate(view.getRightContent(), AnimType.FADE_IN).setDuration(150).setDelay(150);
}
public void onCloseThird() {
    view.getAnimator().animate(view.getRightContent(), AnimType.FADE_OUT).setDuration(150);
    view.getAnimator().animate((HorizontalLayout) view, AnimType.SIZE).setDuration(150)
            .setData("width=-450,x=+450,y=+1").setDelay(150);
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant