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 Animations and Transitions Animations Basics Property Animation

What is thr soluton?

complete soln

// Use the variable named 'imageView'

2 Answers

Harry James
Harry James
14,780 Points

Hey Vikalp,

We're not here to tell you the answers to the Code Challenges as it doesn't benefit your learning.

However, if you run into any problems along the way, we're here to help :)

To get you started on this Code Challenge, You want to call the animate() method from the imageView variable. To call a method from a variable, use this syntax: variable.method(). So to clarify, that's a period after the variable, followed by the method you want to call.

Let me know if you get past the first part of the challenge, and try the next 2 tasks while you're at it! As always, if you get stuck along the way, just leave a comment here and I'll try to get back to you as soon as I can :)

Hey Harry, First of all, thank you very much your reply. I very well understand your point but I got frustrated. My problem is that I know java basics and have written a lot of programs in it in my school course, but I am having a hard time figuring out java in this course. The course intro said we don't even need to know any programming at all and they'll teach us along the but I feel they're not doing that. Where can I learn java used in android? Thanks.

Harry James
Harry James
14,780 Points

Hey again Vikalp,

No problem - this is an Intermediate level Android course so it's not exactly designed for those just starting off with Android. I see you've started off on the Build a simple Android app course though can't tell whether you've completed it or not but this is definitely the place to start.

Also, check out the Android Beginner Track - it lists the courses you should take in the order that they should be completed, starting with the easiest then getting progressively more difficult. I highly recommend you join the track as not only do you get extra points for finishing tracks (Woohoo!) but also each course follows on what you've learnt previously.

Note that in Android, you'll still be using Java as normal, so everything you've learnt still applies. What you're probably getting confused about is that we use the Android libraries, which opens up many more classes and methods we can implement and use. Now, don't worry. There is thousands of these and there's no way you're going to learn them all - just use them as you need them - don't be put off by the huge scale.

Android is the language I started off learning and personally, I think it's a dream to get started on as things just seem to work most of the time, and error messages in Android are designed to be super helpful and let you know where you've gone wrong. Also, the documentation is very detailed and is something I constantly refer to - there's quite often examples of code so you can see how you should be using it.

If you stumble into anything you don't fully understand on the way, check the Questions tab under each video to see if somebody has explained some concepts in further detail. If not, please do give me a shout by tagging me on the forums with @Harry James and I'll try my best to reply when I can.

Now, apologies for putting you through my ramble, and get coding ;)

Harry James No, THANK YOU so much. I really very appreciate your rambling. Thanks.