Skip to content
This repository has been archived by the owner on Apr 19, 2018. It is now read-only.

PathAnimation can not change View.X on After HONEYCOMB #73

Open
KennethLaw opened this issue Jun 22, 2014 · 0 comments
Open

PathAnimation can not change View.X on After HONEYCOMB #73

KennethLaw opened this issue Jun 22, 2014 · 0 comments

Comments

@KennethLaw
Copy link

mTarget Original (x, y) = (0, 0).

code one result : ViewHelper.getX(mTarget)) = 150

However,

code two result :
Pre-HONEYCOMB :ViewHelper.getX(mTarget)) = 150
After HONEYCOMB :ViewHelper.getX(mTarget)) = 0

Why?

// code one
        ObjectAnimator transAnimNormal = ObjectAnimator.ofFloat(mTarget, "translationX", 0, 150);

// code two
        AnimatorPath path = new AnimatorPath();
        path.moveTo(0, 0);
        path.lineTo(0, 150);
        ObjectAnimator transAnim = ObjectAnimator.ofObject(this, "buttonLoc",
                new PathEvaluator(), path.getPoints().toArray());
@KennethLaw KennethLaw changed the title PathAnimation PathAnimation can not change View.X Jun 22, 2014
@KennethLaw KennethLaw changed the title PathAnimation can not change View.X PathAnimation can not change View.X on After HONEYCOMB Jul 16, 2014
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