My favorites | Sign in
Project Home Issues
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 38473: ObjectAnimator.ofPropertyValuesHolder(target, values) returns ValueAnimator instead of ObjectAnimator
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----

Sign in to add a comment
Reported by, Oct 14, 2012
While using the new property animation system I run into a bug / documentation mismatch related to the ObjectAnimator factory "ofPropertyValuesHolder(target, values)".

The documentations says:

public static ObjectAnimator ofPropertyValuesHolder (Object target, PropertyValuesHolder... values)

But using this static method on a ObjectAnimator object like this

ObjectAnimator myObjectAnimator = ObjectAnimator.ofPropertyValuesHolder(myViewToAnimate, myPVH);

results in a ClassCastException because ofPropertyValuesHolder returns a ValueAnimator instead of an ObjectAnimator.

I wonder why this issue isn't fixed in API level 16 that I am using, as it is available since API level 11. :-/
Sign in to add a comment

Powered by Google Project Hosting