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!
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
Ihsan Ahmed
2,670 PointsAnimate an answer
I have can not get the last code challenge right on the animate answer I do not need the answer but any explanation would be great. Question
TextView statusLabel = (TextView) findViewById(R.id.statusLabel);
AlphaAnimation fadeOutAnimation = new AlphaAnimation (1,0); fadeOutAnimation.setDuration(2000); AlphadeOutAnimation.setFillAfter(true); statusLabel.setAnimation(fadeOutAnimation); statusLabel.setAnimation(fadeoutAnimation);
2 Answers

Alex Lavender
2,471 PointsIt looks like the o on the last line should be capitalized, so it reads fadeOutAnimation
Ihsan Ahmed
2,670 PointsI have done these changes but still I have got something wrong with the code. This is the out put from a compiler
"Bummer! Your last line of code should call 'setAnimation()' on statusLabel with an appropriate parameter."So I do not know where I am going wrong.
TextView statusLabel = (TextView) findViewById(R.id.statusLabel); AlphaAnimation fadeOutAnimation = new AlphaAnimation (1,0); fadeOutAnimation.setDuration(2000); fadeOutAnimation.setFillAfter(true); statusLabel.setAnimation(fadeOutAnimation);