Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Youhai Lu
Youhai Lu
1,113 Points

Android Animation and transition

Challenge Task 3 of 4 Now we want to define the start and end values for the drop. Start this animation at zero and end it at a Y position of 400.

<objectAnimator android:propertyName = "y" android:valueFrom ="400" andorid:valueTo="400" />

Based on reviewing the lesson and the android developer documentation here:

https://developer.android.com/guide/topics/resources/animation-resource.html

Your answer seems completely correct to me Youhai Lu , however I'm still getting the error "Bummer! You need one attribute for the 'from' location and one for the 'to' location." Seth Kroger can you take a look?

1 Answer

I have no idea why this has just appeared in my list of newly asked questions?!

I think the issue is in your line:

<objectAnimator android:propertyName = "y" android:valueFrom ="400" andorid:valueTo="400" />

The third android has a typo in it. And I think the valueFrom wants to be "0". Something like:

<objectAnimator android:propertyName="y" android:valueFrom="0" android:valueTo="400" />

Without the link to the challenge, I can't check that.

Steve.