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

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

@KennethLaw

Description

@KennethLaw

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());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions