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 trialAlistair Owens
6,101 Pointsjava Course - Animation of Crystal Ball Problem
In the video Animating the Crystal Ball, at the 6.00 minute mark where Ben is setting the Image resource for the image view, he types a dot after typing "drawable" and intellisense gives him a list of the contents of his "drawable" folders from which he selects the "ball_animation" manifest. My code is the same as Ben's but I am not presented with the same list. Rather I am presented with a much shorter list which does not contain the ball_animation file. The list contains 3 items:
- ball01: int - R.drawable
- ic_laauncher: int - R.drawable
- class: Class <com.example.crystalBall.R.drawable> this
Anyone else seen this problem? Regards Alistair
2 Answers
Ben Rubin
Courses Plus Student 14,658 PointsDid you put all of those ballXX.png files and the ball_animation.xml file into your res/drawable-mdpi folder?
If the files are in there, try refreshing your project in the Package Explorer. Right click on your project name and click Refresh. Eclipse doesn't automatically refresh the files in your Package Explorer when you make changes to them outside of Eclipse. Once you've refreshed, open the res/drawable-mdpi folder in Eclipse's Package Explorer tab and make sure the files are in there.
Alistair Owens
6,101 PointsMany thanks Ben. A refresh followed by a project>clean solved it. Thanks again. Kind regards Alistair