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

Animate() is not applicable[...] #50

Closed
marshallino16 opened this issue Jul 3, 2013 · 2 comments
Closed

Animate() is not applicable[...] #50

marshallino16 opened this issue Jul 3, 2013 · 2 comments

Comments

@marshallino16
Copy link

Hello,

I'm trying to use NineOldAndroids library to rewrite my animations but I can't animate my RelativeLayouts.

Code :
animate(otherContainer).setAlpha(Math.max(0f, Math.min(2f, 1f - 9f * Math.abs(diffX2) / v.getWidth()/2)));

And I got the error : "The method animate() in the type View is not applicable for the arguments (RelativeLayout)"

Any idea ?

@SimonVT
Copy link
Contributor

SimonVT commented Jul 3, 2013

View#animate is a framework method, you have to use ViewPropertyAnimator#animate(View).

@marshallino16
Copy link
Author

Yeah, I figured it out few minutes ago.... dummy.

Thank you

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

2 participants