• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Adding XML and images as resources

Leolicos

Member
I'm using Eclipse and I need to add more .xml layouts and images. To add layouts I right clicked the layout folder and clicked "add file" then saved it as "something.xml", but in the R class, the layout is not there. To add an image I simple created a folder called "drawable" and saved an image in that folder, but again in the R class, my image isn't there in the resource... How do I add them?
 
Make sure that you click Refresh in Eclipse first. Also, this may be a stupid question, but are there objects with id's in your XML file? And finally, I've had problems with images in my Android applications when I use upper case text, so try using lower case for your image names.
 
Back
Top Bottom