Adding XML and images as resources

Discussion in 'Application Development' started by Leolicos, Jun 21, 2010.

  1. Leolicos

    Leolicos Well-Known Member
    15

    Jun 16, 2010
    54
    0
    15
    Senior Software Engineer
    Chicago, IL
    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?
     

    Advertisement

  2. Boogs

    Boogs Well-Known Member
    18

    Apr 6, 2010
    85
    16
    18
    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.
     

Share This Page

Loading...